Admin stat vehicles

This commit is contained in:
2023-01-17 08:31:07 +01:00
parent d531fe63ff
commit 0c0a9d0496
12 changed files with 124 additions and 72 deletions

View File

@@ -0,0 +1,13 @@
package auth
import "net/http"
func (h *AuthHandler) Disconnect(w http.ResponseWriter, r *http.Request) {
session, err := h.idp.SessionsStore.Get(r, "parcoursmob_session")
if err == nil {
session.Options.MaxAge = -1
session.Save(r, w)
}
http.Redirect(w, r, "/", http.StatusOK)
}