前台查看密码 close #24 close #41

This commit is contained in:
naiba
2021-01-31 13:37:43 +08:00
parent ae5e3e1d8d
commit 9c3ac0dd84
13 changed files with 159 additions and 15 deletions
+2
View File
@@ -26,6 +26,7 @@ func Authorize(opt AuthorizeOption) func(*gin.Context) {
if opt.Guest {
code = http.StatusBadRequest
}
commonErr := ErrInfo{
Title: "访问受限",
Code: code,
@@ -36,6 +37,7 @@ func Authorize(opt AuthorizeOption) func(*gin.Context) {
var isLogin bool
// 用户鉴权
token, _ := c.Cookie(dao.Conf.Site.CookieName)
token = strings.TrimSpace(token)
if token != "" {