Skip to content

Commit fde6ff6

Browse files
authored
Backport of fix for auto registration - PR #17219 (#17292)
1 parent 51f4f8c commit fde6ff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/user/auth.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ func SignInOAuthCallback(ctx *context.Context) {
617617
}
618618

619619
if u == nil {
620-
if !(setting.Service.DisableRegistration || setting.Service.AllowOnlyInternalRegistration) && setting.OAuth2Client.EnableAutoRegistration {
620+
if !setting.Service.AllowOnlyInternalRegistration && setting.OAuth2Client.EnableAutoRegistration {
621621
// create new user with details from oauth2 provider
622622
var missingFields []string
623623
if gothUser.UserID == "" {

0 commit comments

Comments
 (0)