misc: addressed totp visibility issue

This commit is contained in:
Sheen Capadngan
2025-05-01 20:26:49 +08:00
parent fdbb930940
commit 8e2cfe2c03
2 changed files with 42 additions and 1 deletions
@@ -97,7 +97,11 @@ export const Route = createFileRoute("/_restrict-login-signup")({
}
if (!data.organizationId) {
if (location.pathname.endsWith("select-organization")) return;
if (
location.pathname.endsWith("select-organization") ||
location.pathname.endsWith("verify-email")
)
return;
throw redirect({ to: "/login/select-organization" });
}
throw redirect({