From 8440759602484aecd477808dde33e50e85ddb4c9 Mon Sep 17 00:00:00 2001 From: Jake Fink Date: Mon, 17 Jun 2024 17:25:58 -0400 Subject: [PATCH] add back env selector to 2fa (#9701) --- apps/web/src/app/oss-routing.module.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/apps/web/src/app/oss-routing.module.ts b/apps/web/src/app/oss-routing.module.ts index 810cba453b..0c038b76a3 100644 --- a/apps/web/src/app/oss-routing.module.ts +++ b/apps/web/src/app/oss-routing.module.ts @@ -258,11 +258,21 @@ const routes: Routes = [ }, { path: "2fa", - component: TwoFactorComponent, canActivate: [unauthGuardFn()], + children: [ + { + path: "", + component: TwoFactorComponent, + }, + { + path: "", + component: EnvironmentSelectorComponent, + outlet: "environment-selector", + }, + ], data: { pageTitle: "verifyIdentity", - }, + } satisfies DataProperties & AnonLayoutWrapperData, }, { path: "recover-2fa",