From bb5330ac171d5ed06ae8d790fe7cb952710d4bbd Mon Sep 17 00:00:00 2001 From: Ryan Kegel Date: Thu, 5 Mar 2026 15:46:59 -0500 Subject: [PATCH] feat: allow bypass of reset-password and verify routes for logged-in users --- frontend/vue-app/src/router/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/vue-app/src/router/index.ts b/frontend/vue-app/src/router/index.ts index 7053648..6a57674 100644 --- a/frontend/vue-app/src/router/index.ts +++ b/frontend/vue-app/src/router/index.ts @@ -264,7 +264,13 @@ router.beforeEach(async (to, from, next) => { } // If already logged in and trying to access /auth or landing, redirect to appropriate view - if ((to.path.startsWith('/auth') || to.path === '/') && isUserLoggedIn.value) { + // Allow reset-password and verify through even when logged in (valid use-case from profile page) + const authBypassRoutes = ['/auth/reset-password', '/auth/verify'] + if ( + (to.path.startsWith('/auth') || to.path === '/') && + isUserLoggedIn.value && + !authBypassRoutes.some((p) => to.path.startsWith(p)) + ) { if (isParentAuthenticated.value) { return next('/parent') } else {