feat: add /admin/login page (v0.14.0)

Password form at /admin/login that calls POST /api/v1/admin/login and
redirects to /admin on success. Admin dashboard now redirects to
/admin/login instead of /join when unauthenticated. Test guide updated.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
MechaCat02
2026-04-03 19:35:40 +02:00
parent 5b2947cdbe
commit eab5bb4d1c
3 changed files with 70 additions and 18 deletions

View File

@@ -47,7 +47,7 @@
const token = getToken();
const role = getRole();
if (!token || role !== 'admin') {
goto('/join');
goto('/admin/login');
return;
}
await reload();