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) }) }