Browse Source

Backport of fix for auto registration - PR #17219 (#17292)

tags/v1.15.5
Viktor Kuzmin 4 years ago committed by GitHub
parent
commit
fde6ff6a75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/web/user/auth.go

2
routers/web/user/auth.go

@ -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 == "" {

Loading…
Cancel
Save