From 87be45063f4212c0678f1897d364533f04684a5f Mon Sep 17 00:00:00 2001 From: Marcus Ramberg Date: Mon, 14 Nov 2016 19:10:39 +0100 Subject: [PATCH] Redirect to / after logout so you aren't automatically logged back in --- server/login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/login.go b/server/login.go index 55dfbfce..9e951d78 100644 --- a/server/login.go +++ b/server/login.go @@ -117,7 +117,7 @@ func GetLogin(c *gin.Context) { func GetLogout(c *gin.Context) { httputil.DelCookie(c.Writer, c.Request, "user_sess") httputil.DelCookie(c.Writer, c.Request, "user_last") - c.Redirect(303, "/login") + c.Redirect(303, "/") } func GetLoginToken(c *gin.Context) {