mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09:00 
			
		
		
		
	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>
This commit is contained in:
		@@ -628,7 +628,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 == "" {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user