From d999d91f19f23fe278ae4e00bcd1d2447adef1fc Mon Sep 17 00:00:00 2001 From: Patrick-Pimentel-Bitwarden Date: Wed, 26 Feb 2025 14:54:06 -0500 Subject: [PATCH] fix(sso-routing): [Auth/PM-13458] Fixes for routing flow on TDE login (#13479) * fix(sso-routing): [PM-13458] Fixes for routing flow on TDE login - Fixed routing flow and added comments. * fix(sso-routing): [PM-13458] Fixes for routing flow on TDE login - Undid the old sso component flow because we determined it's not worth fixing. * fix(sso-routing): [PM-13458] Fixes for routing flow on TDE login - Removed flow entirely. --- libs/auth/src/angular/sso/sso.component.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libs/auth/src/angular/sso/sso.component.ts b/libs/auth/src/angular/sso/sso.component.ts index 9f81ab2a748..cd3429323b5 100644 --- a/libs/auth/src/angular/sso/sso.component.ts +++ b/libs/auth/src/angular/sso/sso.component.ts @@ -445,13 +445,6 @@ export class SsoComponent implements OnInit { const userId = (await firstValueFrom(this.accountService.activeAccount$))?.id; await this.ssoLoginService.setActiveUserOrganizationSsoIdentifier(orgSsoIdentifier, userId); - // Users enrolled in admin acct recovery can be forced to set a new password after - // having the admin set a temp password for them (affects TDE & standard users) - if (authResult.forcePasswordReset == ForceSetPasswordReason.AdminForcePasswordReset) { - // Weak password is not a valid scenario here b/c we cannot have evaluated a MP yet - return await this.handleForcePasswordReset(orgSsoIdentifier); - } - // must come after 2fa check since user decryption options aren't available if 2fa is required const userDecryptionOpts = await firstValueFrom( this.userDecryptionOptionsService.userDecryptionOptions$,