1
0
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:
Kyle Spearrin 2019-10-15 09:36:29 -04:00
parent 13384b4c28
commit 277480e7ff
2 changed files with 0 additions and 8 deletions

View File

@ -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 });

View File

@ -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 });