Redirect to / after logout so you aren't automatically logged back in

This commit is contained in:
Marcus Ramberg 2016-11-14 19:10:39 +01:00
parent fd620bd5e8
commit 87be45063f

View file

@ -117,7 +117,7 @@ func GetLogin(c *gin.Context) {
func GetLogout(c *gin.Context) { func GetLogout(c *gin.Context) {
httputil.DelCookie(c.Writer, c.Request, "user_sess") httputil.DelCookie(c.Writer, c.Request, "user_sess")
httputil.DelCookie(c.Writer, c.Request, "user_last") httputil.DelCookie(c.Writer, c.Request, "user_last")
c.Redirect(303, "/login") c.Redirect(303, "/")
} }
func GetLoginToken(c *gin.Context) { func GetLoginToken(c *gin.Context) {