1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

remove unused skipTotp option on doAutoFill

This commit is contained in:
Thomas Rittson
2021-05-17 13:19:33 +10:00
parent af61732800
commit 59c50f7fb0

View File

@@ -211,8 +211,8 @@ export default class AutofillService implements AutofillServiceInterface {
url: tab.url, url: tab.url,
}, { frameId: pd.frameId }); }, { frameId: pd.frameId });
if (options.cipher.type !== CipherType.Login || totpPromise || options.skipTotp || if (options.cipher.type !== CipherType.Login || totpPromise || !options.cipher.login.totp ||
!options.cipher.login.totp || (!canAccessPremium && !options.cipher.organizationUseTotp)) { (!canAccessPremium && !options.cipher.organizationUseTotp)) {
return; return;
} }
@@ -262,7 +262,6 @@ export default class AutofillService implements AutofillServiceInterface {
const totpCode = await this.doAutoFill({ const totpCode = await this.doAutoFill({
cipher: cipher, cipher: cipher,
pageDetails: pageDetails, pageDetails: pageDetails,
skipTotp: false,
skipLastUsed: !fromCommand, skipLastUsed: !fromCommand,
skipUsernameOnlyFill: !fromCommand, skipUsernameOnlyFill: !fromCommand,
onlyEmptyFields: !fromCommand, onlyEmptyFields: !fromCommand,