From a771ba2b58844d9a10aa2cf6527767733a2a6ae0 Mon Sep 17 00:00:00 2001 From: Viktor Kuzmin Date: Mon, 4 Oct 2021 17:13:30 +0300 Subject: [PATCH] AutoRegistration is supposed to be working with disabled registration --- routers/web/user/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/web/user/auth.go b/routers/web/user/auth.go index 12328e46a1657..65515402cf5d6 100644 --- a/routers/web/user/auth.go +++ b/routers/web/user/auth.go @@ -628,7 +628,7 @@ func SignInOAuthCallback(ctx *context.Context) { } if u == nil { - if !(setting.Service.DisableRegistration || setting.Service.AllowOnlyInternalRegistration) && setting.OAuth2Client.EnableAutoRegistration { + if !setting.Service.AllowOnlyInternalRegistration && setting.OAuth2Client.EnableAutoRegistration { // create new user with details from oauth2 provider var missingFields []string if gothUser.UserID == "" {