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

pull/25/merge
Minho 2017-05-10 16:22:49 +08:00
parent b768bd52aa
commit e60c602f11
1 changed files with 2 additions and 0 deletions

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