Add missing login page and fix auth loop

- /login route did not exist, so /admin redirected to /api/login -> /login -> 404
- /api/auth/user still ran the Replit-era deterministic UUID hash on the session
  id, so it never found the user; now reads the session directly
- admin logout posts to /api/auth/logout and returns to /login
This commit is contained in:
Claude Agent
2026-08-05 16:26:36 +00:00
parent 49d9c83201
commit 711fbdc92c
4 changed files with 95 additions and 20 deletions
+2
View File
@@ -13,6 +13,7 @@ import LivePage from "@/pages/LivePage";
import PlayerPage from "@/pages/PlayerPage";
import KuenstlerPage from "@/pages/KuenstlerPage";
import AdminPage from "@/pages/admin";
import LoginPage from "@/pages/login";
import PrivacyPolicy from "@/pages/PrivacyPolicy";
import TermsOfService from "@/pages/TermsOfService";
import Impressum from "@/pages/Impressum";
@@ -29,6 +30,7 @@ function Router() {
<Route path="/live" component={LivePage} />
<Route path="/player" component={PlayerPage} />
<Route path="/kuenstler" component={KuenstlerPage} />
<Route path="/login" component={LoginPage} />
<Route path="/admin" component={AdminPage} />
<Route path="/privacy" component={PrivacyPolicy} />
<Route path="/terms" component={TermsOfService} />