From 2c404d35d473e16f651b45fc2625926871e60991 Mon Sep 17 00:00:00 2001 From: Todd Martin <106564991+trmartin4@users.noreply.github.com> Date: Thu, 5 Jun 2025 15:55:55 -0400 Subject: [PATCH] fix(2fa): Update CLI to send email regardless of number of methods --- apps/cli/src/auth/commands/login.command.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/cli/src/auth/commands/login.command.ts b/apps/cli/src/auth/commands/login.command.ts index a8e525e2206..03af0085e67 100644 --- a/apps/cli/src/auth/commands/login.command.ts +++ b/apps/cli/src/auth/commands/login.command.ts @@ -273,11 +273,7 @@ export class LoginCommand { } } - if ( - twoFactorToken == null && - Object.keys(response.twoFactorProviders).length > 1 && - selectedProvider.type === TwoFactorProviderType.Email - ) { + if (twoFactorToken == null && selectedProvider.type === TwoFactorProviderType.Email) { const emailReq = new TwoFactorEmailRequest(); emailReq.email = await this.loginStrategyService.getEmail(); emailReq.masterPasswordHash = await this.loginStrategyService.getMasterPasswordHash();