Skip to content

The only tool you need to know what is happening and how to fix it.

fix forgot-password not working

ddux250f17e34100
diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte
index d484398e..572c4b32 100644
--- a/frontend/src/routes/+layout.svelte
+++ b/frontend/src/routes/+layout.svelte
@@ -93,7 +93,7 @@
<Tooltip.Provider delayDuration={0}>
<!-- This is not ideal, but because our layout is a top level route it can end up showing sidebar on the login page (after the login before the transition). -->
<!-- We could consider moving this to a lower level layout for the actual app, for now it's just a path check -->
-{#if authState.isAuthenticated && page.url.pathname !== '/login' && page.url.pathname !== '/register' && page.url.pathname !== '/auth/callback' && page.url.pathname !== '/finish-setup' && !page.url.pathname.startsWith('/accept-invitation')}
+{#if authState.isAuthenticated && page.url.pathname !== '/login' && page.url.pathname !== '/register' && page.url.pathname !== '/auth/callback' && page.url.pathname !== '/finish-setup' && page.url.pathname !== '/forgot-password' && page.url.pathname !== '/reset-password' && !page.url.pathname.startsWith('/accept-invitation')}
<Sidebar.SidebarProvider>
<AppSidebar />
<Sidebar.SidebarInset>
@@ -185,7 +185,7 @@
<Toaster position="bottom-right" />
{:else}
- {#if page.url.pathname === '/login' || page.url.pathname === '/register' || page.url.pathname === '/auth/callback' || page.url.pathname === '/finish-setup' || page.url.pathname.startsWith('/accept-invitation')}
+ {#if page.url.pathname === '/login' || page.url.pathname === '/register' || page.url.pathname === '/auth/callback' || page.url.pathname === '/finish-setup' || page.url.pathname === '/forgot-password' || page.url.pathname === '/reset-password' || page.url.pathname.startsWith('/accept-invitation')}
<main class="h-screen w-screen">
{@render children()}
</main>