Browse Source

Restore IsPasswordSet previous value (#9682)

tags/v1.10.5
zeripath 5 years ago committed by Lunny Xiao
parent
commit
eadb45e891
  1. 2
      models/user.go

2
models/user.go

@ -503,7 +503,7 @@ func (u *User) ValidatePassword(passwd string) bool {
// IsPasswordSet checks if the password is set or left empty // IsPasswordSet checks if the password is set or left empty
func (u *User) IsPasswordSet() bool { func (u *User) IsPasswordSet() bool {
return len(u.Passwd) > 0 return !u.ValidatePassword("")
} }
// UploadAvatar saves custom avatar for user. // UploadAvatar saves custom avatar for user.

Loading…
Cancel
Save