aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorViktor Kuzmin <kvaster@gmail.com>2021-10-11 20:23:59 +0400
committerGitHub <noreply@github.com>2021-10-11 12:23:59 -0400
commitf2a5d1b42b74498b35c4a7ac450ff32760d02f77 (patch)
tree04cfdf3af26719a12dab32d9dbe595ce423c33d4 /routers
parentd8e06a90f06116134e9b2b661ad404210cc052cd (diff)
downloadgitea-f2a5d1b42b74498b35c4a7ac450ff32760d02f77.tar.gz
gitea-f2a5d1b42b74498b35c4a7ac450ff32760d02f77.zip
AutoRegistration is supposed to be working with disabled registration (#17219)
Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'routers')
-rw-r--r--routers/web/user/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/user/auth.go b/routers/web/user/auth.go
index 12328e46a1..65515402cf 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 == "" {