Skip to content

Commit

Permalink
Restore IsPasswordSet previous value (#9682)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeripath authored and lunny committed Jan 11, 2020
1 parent 32fb813 commit eadb45e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/user.go
Expand Up @@ -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.
Expand Down

0 comments on commit eadb45e

Please sign in to comment.