mirror of
https://github.com/bitwarden/clients.git
synced 2026-02-07 17:33:45 +08:00
support for username gen website setting (#738)
This commit is contained in:
@@ -29,6 +29,7 @@ export class PasswordGeneratorComponent implements OnInit {
|
||||
avoidAmbiguous = false;
|
||||
showWebsiteOption = false;
|
||||
enforcedPasswordPolicyOptions: PasswordGeneratorPolicyOptions;
|
||||
usernameWebsite: string = null;
|
||||
|
||||
constructor(
|
||||
protected passwordGenerationService: PasswordGenerationService,
|
||||
@@ -95,6 +96,9 @@ export class PasswordGeneratorComponent implements OnInit {
|
||||
if (!this.showWebsiteOption) {
|
||||
this.usernameOptions.subaddressType = this.usernameOptions.catchallType = "random";
|
||||
}
|
||||
if (this.usernameWebsite != null) {
|
||||
this.usernameOptions.website = this.usernameWebsite;
|
||||
}
|
||||
|
||||
if (qParams.type === "username" || qParams.type === "password") {
|
||||
this.type = qParams.type;
|
||||
|
||||
Reference in New Issue
Block a user