MCPcopy Index your code
hub / github.com/TruthHun/DocHub / Logout

Method Logout

controllers/HomeControllers/UserController.go:307–313  ·  view source on GitHub ↗

用户退出登录

()

Source from the content-addressed store, hash-verified

305
306//用户退出登录
307func (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]
316func (this *UserController) Reg() {

Callers

nothing calls this directly

Calls 2

ResetCookieMethod · 0.80
ResponseJsonMethod · 0.45

Tested by

no test coverage detected