mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-21 19:37:27 +08:00
修改登录逻辑
This commit is contained in:
@@ -22,6 +22,7 @@ type AccountController struct {
|
||||
// Login 用户登录.
|
||||
func (c *AccountController) Login() {
|
||||
c.Prepare()
|
||||
c.TplName = "account/login.tpl"
|
||||
|
||||
var remember struct { MemberId int ; Account string; Time time.Time}
|
||||
|
||||
@@ -76,10 +77,6 @@ func (c *AccountController) Login() {
|
||||
}
|
||||
|
||||
return
|
||||
}else{
|
||||
|
||||
c.Layout = ""
|
||||
c.TplName = "account/login.tpl"
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user