make the session logic a little more concrete

This commit is contained in:
2026-04-01 00:09:04 -04:00
parent 737a1908e0
commit 0402a6ff9c
2 changed files with 13 additions and 15 deletions

View File

@@ -234,7 +234,7 @@ func logoutHandler(w http.ResponseWriter, r *http.Request) {
}
logging.Infof("handling logout event for %s", sessionData.data.Username)
deleteSession(token)
deleteSession(hashSession(token))
http.Redirect(w, r, "/login", http.StatusSeeOther)
}