mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-09 09:51:02 +01:00
Fix password re-prompt triggering on non-reprompt items (#1817)
* Fix password re-prompt triggering on non-reprompt items
This commit is contained in:
parent
cdc71dd661
commit
6e9e0445de
@ -7,6 +7,7 @@ import {
|
|||||||
|
|
||||||
import { ToasterService } from 'angular2-toaster';
|
import { ToasterService } from 'angular2-toaster';
|
||||||
|
|
||||||
|
import { CipherRepromptType } from 'jslib/enums/cipherRepromptType';
|
||||||
import { CipherType } from 'jslib/enums/cipherType';
|
import { CipherType } from 'jslib/enums/cipherType';
|
||||||
import { EventType } from 'jslib/enums/eventType';
|
import { EventType } from 'jslib/enums/eventType';
|
||||||
|
|
||||||
@ -46,7 +47,8 @@ export class ActionButtonsComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async copy(cipher: CipherView, value: string, typeI18nKey: string, aType: string) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user