修复记住账号无法退出的BUG

This commit is contained in:
Minho
2017-05-10 16:21:36 +08:00
parent 9af239a83b
commit 0e86384634

View File

@@ -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)
}