mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-29 04:17:41 +02:00
Merge pull request #2161 from bitwarden/respect-password-reprompt-when-using-unlock-on-autofill
Filter ciphers that have password reprompt set when using unlock on a…
This commit is contained in:
commit
d71c945d8b
@ -9,6 +9,7 @@ import { PlatformUtilsService } from 'jslib-common/abstractions/platformUtils.se
|
||||
import { TotpService } from 'jslib-common/abstractions/totp.service';
|
||||
import { VaultTimeoutService } from 'jslib-common/abstractions/vaultTimeout.service';
|
||||
|
||||
import { CipherRepromptType } from 'jslib-common/enums/cipherRepromptType';
|
||||
import { EventType } from 'jslib-common/enums/eventType';
|
||||
import { CipherView } from 'jslib-common/models/view/cipherView';
|
||||
import LockedVaultPendingNotificationsItem from './models/lockedVaultPendingNotificationsItem';
|
||||
@ -84,7 +85,7 @@ export default class ContextMenusBackground {
|
||||
let cipher: CipherView;
|
||||
if (id === this.noopCommandSuffix) {
|
||||
const ciphers = await this.cipherService.getAllDecryptedForUrl(tab.url);
|
||||
cipher = ciphers.length > 0 ? ciphers[0] : null;
|
||||
cipher = ciphers.find(c => c.reprompt === CipherRepromptType.None);
|
||||
} else {
|
||||
const ciphers = await this.cipherService.getAllDecrypted();
|
||||
cipher = ciphers.find(c => c.id === id);
|
||||
|
Loading…
Reference in New Issue
Block a user