Skip to content

Commit 465caef

Browse files
committed
Restore IsPasswordSet previous value
1 parent 32fb813 commit 465caef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ func (u *User) ValidatePassword(passwd string) bool {
503503

504504
// IsPasswordSet checks if the password is set or left empty
505505
func (u *User) IsPasswordSet() bool {
506-
return len(u.Passwd) > 0
506+
return !u.ValidatePassword("")
507507
}
508508

509509
// UploadAvatar saves custom avatar for user.

0 commit comments

Comments
 (0)