This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Restore IsPasswordSet previous value (
#9682
)
tags/v1.21.12.1
zeripath
Lunny Xiao
5 years ago
parent
32fb813133
commit
eadb45e891
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
models/user.go
+ 1
- 1
models/user.go
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.
Write
Preview
Loading…
Cancel
Save