用户退出登录
()
| 305 | |
| 306 | //用户退出登录 |
| 307 | func (this *UserController) Logout() { |
| 308 | this.ResetCookie() |
| 309 | if v, ok := this.Ctx.Request.Header["X-Requested-With"]; ok && v[0] == "XMLHttpRequest" { |
| 310 | this.ResponseJson(true, "退出登录成功") |
| 311 | } |
| 312 | this.Redirect("/", 302) |
| 313 | } |
| 314 | |
| 315 | //会员注册[GET/POST] |
| 316 | func (this *UserController) Reg() { |
nothing calls this directly
no test coverage detected