mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 20:17:53 +08:00
修复记住账号后无法退出的BUG
This commit is contained in:
parent
b768bd52aa
commit
e60c602f11
@ -327,6 +327,8 @@ func (c *AccountController) ValidEmail() {
|
||||
func (c *AccountController) Logout(){
|
||||
c.SetMember(models.Member{});
|
||||
|
||||
c.SetSecureCookie(conf.GetAppKey(),"login","",-3600)
|
||||
|
||||
c.Redirect(beego.URLFor("AccountController.Login"),302)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user