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 32fb813 commit eadb45eCopy full SHA for eadb45e
models/user.go
@@ -503,7 +503,7 @@ func (u *User) ValidatePassword(passwd string) bool {
503
504
// IsPasswordSet checks if the password is set or left empty
505
func (u *User) IsPasswordSet() bool {
506
- return len(u.Passwd) > 0
+ return !u.ValidatePassword("")
507
}
508
509
// UploadAvatar saves custom avatar for user.
0 commit comments