forked from NYANDEV/forgejo
* Restore IsPasswordSet previous value * Update models/user.go Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
parent
ff16099c6d
commit
7eaba6ba8a
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue