1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 13:53:34 +00:00

fix(2fa): Update CLI to send email regardless of number of methods

This commit is contained in:
Todd Martin
2025-06-05 15:55:55 -04:00
committed by GitHub
parent e8224fdbe3
commit 2c404d35d4

View File

@@ -273,11 +273,7 @@ export class LoginCommand {
} }
} }
if ( if (twoFactorToken == null && selectedProvider.type === TwoFactorProviderType.Email) {
twoFactorToken == null &&
Object.keys(response.twoFactorProviders).length > 1 &&
selectedProvider.type === TwoFactorProviderType.Email
) {
const emailReq = new TwoFactorEmailRequest(); const emailReq = new TwoFactorEmailRequest();
emailReq.email = await this.loginStrategyService.getEmail(); emailReq.email = await this.loginStrategyService.getEmail();
emailReq.masterPasswordHash = await this.loginStrategyService.getMasterPasswordHash(); emailReq.masterPasswordHash = await this.loginStrategyService.getMasterPasswordHash();