Phase 12: Initial Setup Wizard #22

Merged
luckberg merged 76 commits from gsd/phase-12-initial-setup-wizard into main 2026-06-16 19:10:33 -04:00
Showing only changes of commit 3bc38bf1a6 - Show all commits
+3
View File
@@ -275,6 +275,9 @@ setupRouter.post('/credential', zValidator('json', credentialSchema, noEchoHook)
.limit(1);
if (!localUser) {
// Clean up the just-inserted user row to avoid an orphaned unclaimed admin
// (WR-01: the catch block below does not cover this early-return path).
await db.delete(users).where(eq(users.id, inserted.id));
return c.json({ error: 'Service unavailable' }, 503);
}