From 737960cd4f8f8db6af5c6df1b6b30fbff223648f Mon Sep 17 00:00:00 2001 From: Patrick Pimentel Date: Wed, 21 May 2025 16:49:03 -0400 Subject: [PATCH] fix(policy-enforcement): [PM-21085] Fix Bug with Policy Enforcement - Removed temp code to force the state I need to verify correctness. --- .../auth/core/services/login/web-login-component.service.ts | 2 +- apps/web/src/app/oss-routing.module.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/src/app/auth/core/services/login/web-login-component.service.ts b/apps/web/src/app/auth/core/services/login/web-login-component.service.ts index 36e7143ccd0..c644f26dd90 100644 --- a/apps/web/src/app/auth/core/services/login/web-login-component.service.ts +++ b/apps/web/src/app/auth/core/services/login/web-login-component.service.ts @@ -98,7 +98,7 @@ export class WebLoginComponentService const enforcedPasswordPolicyOptions = await firstValueFrom( this.accountService.activeAccount$.pipe( getUserId, - switchMap((userId) => this.policyService.masterPasswordPolicyOptions$(userId, policies)), + switchMap((userId) => this.policyService.masterPasswordPolicyOptions$(userId)), ), ); diff --git a/apps/web/src/app/oss-routing.module.ts b/apps/web/src/app/oss-routing.module.ts index c95b750cfea..3a515b6af46 100644 --- a/apps/web/src/app/oss-routing.module.ts +++ b/apps/web/src/app/oss-routing.module.ts @@ -170,7 +170,7 @@ const routes: Routes = [ canActivate: [ canAccessFeature( FeatureFlag.PM16117_ChangeExistingPasswordRefactor, - true, + false, "/change-password", false, ), @@ -184,7 +184,7 @@ const routes: Routes = [ canActivate: [ canAccessFeature( FeatureFlag.PM16117_ChangeExistingPasswordRefactor, - true, + false, "/change-password", false, ),