We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd3e52d commit 0e5126dCopy full SHA for 0e5126d
models/user.go
@@ -502,7 +502,7 @@ func (u *User) ValidatePassword(passwd string) bool {
502
503
// IsPasswordSet checks if the password is set or left empty
504
func (u *User) IsPasswordSet() bool {
505
- return len(u.Passwd) > 0
+ return !u.ValidatePassword("")
506
}
507
508
// UploadAvatar saves custom avatar for user.
0 commit comments