fix loading ofr login form and redirects.

This commit is contained in:
2025-04-23 10:06:55 +01:00
parent 2ce810a4dd
commit e938828a8c
7 changed files with 83 additions and 69 deletions

View File

@@ -15,7 +15,7 @@ func AdminDashboardHandler(db *sql.DB) http.HandlerFunc {
return httpHelpers.AuthMiddleware(func(w http.ResponseWriter, r *http.Request) {
// userID, ok := securityHelpers.GetCurrentUserID(r)
// if !ok {
// http.Redirect(w, r, "/login", http.StatusSeeOther)
// http.Redirect(w, r, "/account/login", http.StatusSeeOther)
// return
// }