Update api.go

fix update password
This commit is contained in:
Deepzz
2016-11-24 10:15:57 +08:00
committed by GitHub
parent 67444d6674
commit 78ca767b98

2
api.go
View File

@@ -110,7 +110,7 @@ func apiPassword(c *gin.Context) {
responseNotice(c, NOTICE_NOTICE, "密码格式错误", "")
return
}
if !VerifyPasswd(Ei.Password, Ei.BlogName, od) {
if !VerifyPasswd(Ei.Password, Ei.UserName, od) {
responseNotice(c, NOTICE_NOTICE, "原始密码不正确", "")
return
}