Skip to content

Commit

Permalink
Backport of fix for auto registration - PR go-gitea#17219 (go-gitea#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaster authored Oct 12, 2021
1 parent 51f4f8c commit fde6ff6
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 @@ -617,7 +617,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 fde6ff6

Please sign in to comment.