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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user