mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
[PM-5611] username generator panel (#11201)
* add username and email engines to generators * introduce username and email settings components * introduce generator algorithm metadata * inline generator policies * wait until settings are available during generation
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { PasswordTypes, PolicyEvaluator } from "@bitwarden/generator-core";
|
||||
import { PasswordAlgorithms, PolicyEvaluator } from "@bitwarden/generator-core";
|
||||
|
||||
import { DefaultGeneratorNavigation } from "./default-generator-navigation";
|
||||
import { GeneratorNavigation } from "./generator-navigation";
|
||||
@@ -17,7 +17,7 @@ export class GeneratorNavigationEvaluator
|
||||
|
||||
/** {@link PolicyEvaluator.policyInEffect} */
|
||||
get policyInEffect(): boolean {
|
||||
return PasswordTypes.includes(this.policy?.overridePasswordType);
|
||||
return PasswordAlgorithms.includes(this.policy?.overridePasswordType);
|
||||
}
|
||||
|
||||
/** Apply policy to the input options.
|
||||
|
||||
Reference in New Issue
Block a user