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