Simo
|
08a9882be8
|
Add register + logout auth flows, and batch-5 resources
Auth (hand-built, uses the auth core):
- /register + register() action: validates, hashes with argon2id (hashPassword),
creates an emulator-compatible users row (accountCreated/ipRegister/ipCurrent/
look), redirect kept outside try so NEXT_REDIRECT propagates. Login/register
cross-links; header shows Register (logged-out) and a Logout (signOut) button.
Batch 5 (parallel agents): /admin/rooms (+[id]) search+detail, /admin/vouchers
(CRUD), /admin/subscriptions (read), /admin/calendar (campaigns+rewards read),
/marketplace (public). Header + admin nav extended.
Verified: tsc exit 0, vitest 48/48, next build exit 0 (52 page routes).
|
2026-06-28 13:52:32 +02:00 |
|