From 87ec0230c5e710f7decb5528084c130b490c5dcc Mon Sep 17 00:00:00 2001 From: sharath <29162020+tnfssc@users.noreply.github.com> Date: Tue, 22 Jul 2025 11:02:11 +0000 Subject: [PATCH] fix(auth): temporarily disable redirection for new users without MFA enrolled --- frontend/src/components/auth/background-aal-checker.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/auth/background-aal-checker.tsx b/frontend/src/components/auth/background-aal-checker.tsx index 6536fb42..04fb082b 100644 --- a/frontend/src/components/auth/background-aal-checker.tsx +++ b/frontend/src/components/auth/background-aal-checker.tsx @@ -64,7 +64,8 @@ export function BackgroundAALChecker({ if (current_level === "aal1" && next_level === "aal1") { // New user has no MFA enrolled - redirect to enrollment console.log('Background: New user without MFA enrolled, redirecting to phone verification'); - router.push(redirectTo); + // Temporarily disabled + // router.push(redirectTo); return; } // If new user has MFA enrolled, follow standard AAL flow below