mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-08-20 08:42:38 +08:00
修改登录逻辑
This commit is contained in:
parent
97165256c0
commit
30168ce44c
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user