mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Restore IsPasswordSet previous value (#9682)
This commit is contained in:
		@@ -503,7 +503,7 @@ func (u *User) ValidatePassword(passwd string) bool {
 | 
			
		||||
 | 
			
		||||
// IsPasswordSet checks if the password is set or left empty
 | 
			
		||||
func (u *User) IsPasswordSet() bool {
 | 
			
		||||
	return len(u.Passwd) > 0
 | 
			
		||||
	return !u.ValidatePassword("")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// UploadAvatar saves custom avatar for user.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user