fix login form
Some checks failed
CI / test-build (push) Has been cancelled

This commit is contained in:
2025-12-20 03:47:13 +00:00
parent b90c725cdb
commit 3a25138d5b
11 changed files with 74 additions and 4 deletions

View File

@@ -8,6 +8,14 @@ import (
)
func (a *App) handleDashboard(w http.ResponseWriter, r *http.Request) {
// Redirect to login page if not authenticated
// Since we use JWT in localStorage (client-side), we'll redirect to login
// and let the frontend handle token validation
http.Redirect(w, r, "/login", http.StatusFound)
}
func (a *App) handleDashboardPage(w http.ResponseWriter, r *http.Request) {
// This is the actual dashboard page (accessed via /dashboard route)
data := map[string]any{
"Title": "Dashboard",
"Build": map[string]string{