From 6e9e0445de3b5fdd7872bfa5f59d670fc49bae75 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Tue, 4 May 2021 19:04:18 +0200 Subject: [PATCH] Fix password re-prompt triggering on non-reprompt items (#1817) * Fix password re-prompt triggering on non-reprompt items --- src/popup/components/action-buttons.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/popup/components/action-buttons.component.ts b/src/popup/components/action-buttons.component.ts index b61233dea5..06d6dc8fae 100644 --- a/src/popup/components/action-buttons.component.ts +++ b/src/popup/components/action-buttons.component.ts @@ -7,6 +7,7 @@ import { import { ToasterService } from 'angular2-toaster'; +import { CipherRepromptType } from 'jslib/enums/cipherRepromptType'; import { CipherType } from 'jslib/enums/cipherType'; import { EventType } from 'jslib/enums/eventType'; @@ -46,7 +47,8 @@ export class ActionButtonsComponent { } async copy(cipher: CipherView, value: string, typeI18nKey: string, aType: string) { - if (this.passwordRepromptService.protectedFields().includes(aType) && !await this.passwordRepromptService.showPasswordPrompt()) { + if (this.cipher.reprompt !== CipherRepromptType.None && this.passwordRepromptService.protectedFields().includes(aType) && + !await this.passwordRepromptService.showPasswordPrompt()) { return; }