fix article list error

This commit is contained in:
deepzz0
2016-12-08 23:15:40 +08:00
parent adbe1b97f4
commit 01335ea06c
5 changed files with 25 additions and 20 deletions

View File

@@ -61,7 +61,7 @@ func HandleLoginPost(c *gin.Context) {
return
}
if Ei.Username != user || !VerifyPasswd(Ei.Password, user, pwd) {
logd.Print("账号或密码错误", user, pwd)
logd.Printf("账号或密码错误 %s, %s", user, pwd)
c.Redirect(http.StatusFound, "/admin/login")
return
}
@@ -105,7 +105,7 @@ func HandlePost(c *gin.Context) {
h["Edit"] = artc
}
}
if h["Title"] == "" {
if h["Title"] == nil {
h["Title"] = "撰写文章 | " + Ei.BTitle
}
h["Path"] = c.Request.URL.Path