mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-14 02:12:26 +08:00
Update api.go
fix update password
This commit is contained in:
2
api.go
2
api.go
@@ -110,7 +110,7 @@ func apiPassword(c *gin.Context) {
|
|||||||
responseNotice(c, NOTICE_NOTICE, "密码格式错误", "")
|
responseNotice(c, NOTICE_NOTICE, "密码格式错误", "")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !VerifyPasswd(Ei.Password, Ei.BlogName, od) {
|
if !VerifyPasswd(Ei.Password, Ei.UserName, od) {
|
||||||
responseNotice(c, NOTICE_NOTICE, "原始密码不正确", "")
|
responseNotice(c, NOTICE_NOTICE, "原始密码不正确", "")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user