aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/app.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/app.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/app.js b/packages/meshbay-hub/src/meshbay_hub/static/app.js
index acd4c1d..994cb73 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/app.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/app.js
@@ -20,7 +20,7 @@ import { MusicPlayerBar } from './music-player.js';
import { SettingsPage } from './settings-page.js';
import { ProfilePage } from './profile-page.js';
import { ExplorePage } from './explore-page.js';
-import { FirstRunPage, LoginPage, RegisterPage } from './auth-page.js';
+import { FirstRunPage, LoginPage, RegisterPage, ResetPasswordPage } from './auth-page.js';
// ── Constants ────────────────────────────────────────────────────────────────
@@ -804,10 +804,12 @@ function App() {
// Signing in with this device's key. Showing a form here would be showing
// one the user is about to be taken past.
page = html`<p class="page-message">${t('status.connecting')}</p>`;
- } else if (route === '/login' || route === '/register') {
+ } else if (route === '/login' || route === '/register' || route === '/reset') {
page = route === '/register'
? html`<${RegisterPage} />`
- : html`<${LoginPage} onLogin=${authCtx.login} />`;
+ : route === '/reset'
+ ? html`<${ResetPasswordPage} onLogin=${authCtx.login} />`
+ : html`<${LoginPage} onLogin=${authCtx.login} />`;
} else if (!user) {
page = html`<${LoginPage} onLogin=${authCtx.login} />`;
} else if (route === '/search') {