0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 23:33:15 -05:00

Restore IsPasswordSet previous value (#9682)

This commit is contained in:
zeripath 2020-01-11 10:50:05 +00:00 committed by Lunny Xiao
parent 32fb813133
commit eadb45e891

View file

@ -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.