mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-26 12:25:20 +01:00
still allow password generation when vault locked
This commit is contained in:
parent
13384b4c28
commit
277480e7ff
@ -57,10 +57,6 @@ export default class CommandsBackground {
|
||||
return;
|
||||
}
|
||||
|
||||
if (await this.lockService.isLocked()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const options = await this.passwordGenerationService.getOptions();
|
||||
const password = await this.passwordGenerationService.generatePassword(options);
|
||||
this.platformUtilsService.copyToClipboard(password, { window: window });
|
||||
|
@ -37,10 +37,6 @@ export default class ContextMenusBackground {
|
||||
}
|
||||
|
||||
private async generatePasswordToClipboard() {
|
||||
if (await this.lockService.isLocked()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const options = await this.passwordGenerationService.getOptions();
|
||||
const password = await this.passwordGenerationService.generatePassword(options);
|
||||
this.platformUtilsService.copyToClipboard(password, { window: window });
|
||||
|
Loading…
Reference in New Issue
Block a user