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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user