Merge pull request #1854 from marcusramberg/fix_logout_redirect

Redirect to / after logout so you aren't automatically logged back in.
This commit is contained in:
Brad Rydzewski 2016-11-14 22:51:01 +00:00 committed by GitHub
commit cdb9cd915e

View file

@ -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) {