Skip to content

Commit f2a5d1b

Browse files
kvaster6543lafriks
authored
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>
1 parent d8e06a9 commit f2a5d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/user/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ func SignInOAuthCallback(ctx *context.Context) {
628628
}
629629

630630
if u == nil {
631-
if !(setting.Service.DisableRegistration || setting.Service.AllowOnlyInternalRegistration) && setting.OAuth2Client.EnableAutoRegistration {
631+
if !setting.Service.AllowOnlyInternalRegistration && setting.OAuth2Client.EnableAutoRegistration {
632632
// create new user with details from oauth2 provider
633633
var missingFields []string
634634
if gothUser.UserID == "" {

0 commit comments

Comments
 (0)