(c *context.Context)
| 283 | } |
| 284 | |
| 285 | func SignOut(c *context.Context) { |
| 286 | _ = c.Session.Flush() |
| 287 | _ = c.Session.Destory(c.Context) |
| 288 | c.SetCookie(conf.Security.CookieUsername, "", -1, conf.Server.Subpath) |
| 289 | c.SetCookie(conf.Security.CookieRememberName, "", -1, conf.Server.Subpath) |
| 290 | c.SetCookie(conf.Session.CSRFCookieName, "", -1, conf.Server.Subpath) |
| 291 | if conf.Auth.CustomLogoutURL != "" { |
| 292 | c.Redirect(conf.Auth.CustomLogoutURL) |
| 293 | return |
| 294 | } |
| 295 | c.RedirectSubpath("/") |
| 296 | } |
| 297 | |
| 298 | func SignUp(c *context.Context) { |
| 299 | c.Title("sign_up") |
nothing calls this directly
no test coverage detected