Logout 退出登录.
()
| 583 | |
| 584 | // Logout 退出登录. |
| 585 | func (this *AccountController) Logout() { |
| 586 | this.SetMember(models.Member{}) |
| 587 | |
| 588 | this.SetSecureCookie(conf.GetAppKey(), "login", "", -3600) |
| 589 | |
| 590 | this.Redirect(beego.URLFor("AccountController.Login"), 302) |
| 591 | } |
| 592 | |
| 593 | //记录笔记 |
| 594 | func (this *AccountController) Note() { |