mirror of
https://github.com/go-gitea/gitea
synced 2025-02-03 21:44:28 +00:00
parent
51f4f8c393
commit
fde6ff6a75
@ -617,7 +617,7 @@ func SignInOAuthCallback(ctx *context.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if u == nil {
|
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
|
// create new user with details from oauth2 provider
|
||||||
var missingFields []string
|
var missingFields []string
|
||||||
if gothUser.UserID == "" {
|
if gothUser.UserID == "" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user