Skip to content

Commit

Permalink
AutoRegistration is supposed to be working with disabled registration (
Browse files Browse the repository at this point in the history
…go-gitea#17219)

Co-authored-by: 6543 <[email protected]>
Co-authored-by: Lauris BH <[email protected]>
  • Loading branch information
3 people authored and Stelios Malathouras committed Oct 15, 2021
1 parent 3c8f206 commit d7a4710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/user/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "" {
Expand Down

0 comments on commit d7a4710

Please sign in to comment.