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; return;
} }
if (await this.lockService.isLocked()) {
return;
}
const options = await this.passwordGenerationService.getOptions(); const options = await this.passwordGenerationService.getOptions();
const password = await this.passwordGenerationService.generatePassword(options); const password = await this.passwordGenerationService.generatePassword(options);
this.platformUtilsService.copyToClipboard(password, { window: window }); this.platformUtilsService.copyToClipboard(password, { window: window });

View File

@ -37,10 +37,6 @@ export default class ContextMenusBackground {
} }
private async generatePasswordToClipboard() { private async generatePasswordToClipboard() {
if (await this.lockService.isLocked()) {
return;
}
const options = await this.passwordGenerationService.getOptions(); const options = await this.passwordGenerationService.getOptions();
const password = await this.passwordGenerationService.generatePassword(options); const password = await this.passwordGenerationService.generatePassword(options);
this.platformUtilsService.copyToClipboard(password, { window: window }); this.platformUtilsService.copyToClipboard(password, { window: window });