From b1c653e7de82477cbae233710a858392ed8d3e76 Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Tue, 31 Jan 2023 15:47:29 +0100 Subject: [PATCH] Add redirect from logout to login --- pkg/login.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/login.go b/pkg/login.go index cc5b871..6522e58 100644 --- a/pkg/login.go +++ b/pkg/login.go @@ -64,6 +64,7 @@ func LogoutHandler() http.Handler { conn := getConn(r) conn.MustExec(r.Context(), "select logout()") http.SetCookie(w, createSessionCookie("", -24*time.Hour)) + http.Redirect(w, r, "/login", http.StatusSeeOther) }) }