mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
feat: Add option to auto-copy TOTP code when page auto fills credentials
This commit is contained in:
@@ -254,10 +254,12 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
}
|
||||
}
|
||||
|
||||
const shouldCopyTotpOnAutoFill = await this.totpService.isAutoCopyOnAutoFillEnabled();
|
||||
|
||||
const totpCode = await this.doAutoFill({
|
||||
cipher: cipher,
|
||||
pageDetails: pageDetails,
|
||||
skipTotp: !fromCommand,
|
||||
skipTotp: !fromCommand && !shouldCopyTotpOnAutoFill,
|
||||
skipLastUsed: !fromCommand,
|
||||
skipUsernameOnlyFill: !fromCommand,
|
||||
onlyEmptyFields: !fromCommand,
|
||||
|
||||
Reference in New Issue
Block a user