Add redirect from logout to login

This commit is contained in:
jordi fita mas 2023-01-31 15:47:29 +01:00
parent e0abf98bb1
commit b1c653e7de
1 changed files with 1 additions and 0 deletions

View File

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