1 parent 587789d commit 5f125f0Copy full SHA for 5f125f0
1 file changed
src/App.tsx
@@ -628,11 +628,15 @@ export class App extends UIComponent<{}, IAppState> {
628
return;
629
}
630
631
- await this.setStatePromise({ phase: AppPhase.Login });
632
- const loggedIn = await this.loginDialogRef.current?.show(true);
+ // Skip login when there are no users (e.g., schema broken,
+ // users table missing). The backend allows emergency reset without auth.
633
+ if (health.hasUsers) {
634
+ await this.setStatePromise({ phase: AppPhase.Login });
635
+ const loggedIn = await this.loginDialogRef.current?.show(true);
636
- if (!loggedIn) {
- return;
637
+ if (!loggedIn) {
638
+ return;
639
+ }
640
641
642
const ok = await this.dataModel.resetDatabase();
0 commit comments