Skip to content

Commit

Permalink
Restore IsPasswordSet previous value
Browse files Browse the repository at this point in the history
  • Loading branch information
zeripath committed Jan 9, 2020
1 parent cd3e52d commit 7436b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/user.go
Expand Up @@ -502,7 +502,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 7436b82

Please sign in to comment.