mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Don't WARN log UserNotExist errors on ExternalUserLogin failure (#16238)
Instead log these at debug - with warn logging for other errors. Fix #16235 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		@@ -856,7 +856,11 @@ func UserSignIn(username, password string) (*User, error) {
 | 
			
		||||
			return authUser, nil
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		log.Warn("Failed to login '%s' via '%s': %v", username, source.Name, err)
 | 
			
		||||
		if IsErrUserNotExist(err) {
 | 
			
		||||
			log.Debug("Failed to login '%s' via '%s': %v", username, source.Name, err)
 | 
			
		||||
		} else {
 | 
			
		||||
			log.Warn("Failed to login '%s' via '%s': %v", username, source.Name, err)
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return nil, ErrUserNotExist{user.ID, user.Name, 0}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user