mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 15:53:07 -05:00
Fix value of User.IsRestricted to default setting when oauth2 user auto registration; (#17839)
This commit is contained in:
parent
72d82c5b6f
commit
fbadc1a198
1 changed files with 8 additions and 7 deletions
|
@ -688,6 +688,7 @@ func SignInOAuthCallback(ctx *context.Context) {
|
||||||
LoginType: login.OAuth2,
|
LoginType: login.OAuth2,
|
||||||
LoginSource: loginSource.ID,
|
LoginSource: loginSource.ID,
|
||||||
LoginName: gothUser.UserID,
|
LoginName: gothUser.UserID,
|
||||||
|
IsRestricted: setting.Service.DefaultUserIsRestricted,
|
||||||
}
|
}
|
||||||
|
|
||||||
if !createAndHandleCreatedUser(ctx, base.TplName(""), nil, u, &gothUser, setting.OAuth2Client.AccountLinking != setting.OAuth2AccountLinkingDisabled) {
|
if !createAndHandleCreatedUser(ctx, base.TplName(""), nil, u, &gothUser, setting.OAuth2Client.AccountLinking != setting.OAuth2AccountLinkingDisabled) {
|
||||||
|
|
Loading…
Reference in a new issue