1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 02:03:39 +00:00

Enforce Password Generator Policy Options (#1155)

This commit is contained in:
Vincent Salucci
2020-02-28 11:43:27 -06:00
committed by GitHub
parent 9fce5147e7
commit 9b4f1045f3
4 changed files with 14 additions and 9 deletions

View File

@@ -37,7 +37,7 @@ export default class ContextMenusBackground {
}
private async generatePasswordToClipboard() {
const options = await this.passwordGenerationService.getOptions();
const options = (await this.passwordGenerationService.getOptions())[0];
const password = await this.passwordGenerationService.generatePassword(options);
this.platformUtilsService.copyToClipboard(password, { window: window });
this.passwordGenerationService.addHistory(password);