1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 18:53:29 +00:00

Enforce Password Generator Policy Options (#469)

* Initial commit for enforcing password generator policy options

* Revert to previous isDev URL setup
This commit is contained in:
Vincent Salucci
2020-02-26 18:32:57 -06:00
committed by GitHub
parent 5ed830205d
commit a27eddae56
5 changed files with 21 additions and 13 deletions

View File

@@ -103,7 +103,7 @@ export class AddEditComponent extends BaseAddEditComponent {
async generatePassword(): Promise<boolean> {
const confirmed = await super.generatePassword();
if (confirmed) {
const options = await this.passwordGenerationService.getOptions();
const options = (await this.passwordGenerationService.getOptions())[0];
this.cipher.login.password = await this.passwordGenerationService.generatePassword(options);
}
return confirmed;