summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go
index f2c0a1861e..9ddd262aed 100644
--- a/models/user.go
+++ b/models/user.go
@@ -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.