diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index 28b86fa..ee04475 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -31,10 +31,13 @@ $effect(() => { const path = $page.url.pathname; - if (!path.startsWith('/auth/')) { - checkAuth(); - } else { + // Auth-only routes (login, forgot) - no auth required, no layout chrome + // /auth/change-password requires auth, so treat it like a regular route + const isAuthOnlyRoute = path === '/auth/login' || path === '/auth/forgot'; + if (isAuthOnlyRoute) { loading = false; + } else { + checkAuth(); } });