make the session logic a little more concrete
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user