From 78ca767b982fafbf1bd563daadb88f27ab4653a5 Mon Sep 17 00:00:00 2001 From: Deepzz Date: Thu, 24 Nov 2016 10:15:57 +0800 Subject: [PATCH] Update api.go fix update password --- api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.go b/api.go index e463bb3..6feea94 100644 --- a/api.go +++ b/api.go @@ -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 }