Commit e3cd45f
Keep gating setup until an account actually exists
Visiting /admin/setup latched setupCompleted=true before any superuser
was created, so a second visit to the bare domain skipped the gate and
landed on /admin/auth — a dead end on a never-set-up instance. Only latch
once a real superuser exists; until then, redirect every non-setup admin
page back to setup.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 056f2ba commit e3cd45f
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
62 | 69 | | |
| 70 | + | |
| 71 | + | |
63 | 72 | | |
64 | 73 | | |
65 | 74 | | |
| |||
0 commit comments