mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
Enforce Passphrase Policy (#1172)
* Update jslib (44b86f5->36241e9) and initial commit of passphrase policy * Reverted string changes - updated number of words event trigger * Update input event to blur to match other number fields * Update jslib (36241e9->0a30c7e) Co-authored-by: Vincent Salucci <vsalucci@bitwarden.com>
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 44b86f5dd0...0a30c7eb1e
@@ -11,7 +11,7 @@
|
||||
</div>
|
||||
</header>
|
||||
<content>
|
||||
<app-callout type="info" *ngIf="policyInEffect">
|
||||
<app-callout type="info" *ngIf="enforcedPolicyOptions?.inEffect()">
|
||||
{{'passwordGeneratorPolicyInEffect' | i18n}}
|
||||
</app-callout>
|
||||
<div class="password-block">
|
||||
@@ -51,7 +51,7 @@
|
||||
<div class="box-content">
|
||||
<div class="box-content-row box-content-row-input" appBoxRow>
|
||||
<label for="num-words">{{'numWords' | i18n}}</label>
|
||||
<input id="num-words" type="number" min="3" max="20" (input)="saveOptions()"
|
||||
<input id="num-words" type="number" min="3" max="20" (blur)="saveOptions()"
|
||||
[(ngModel)]="options.numWords">
|
||||
</div>
|
||||
<div class="box-content-row box-content-row-input" appBoxRow>
|
||||
@@ -61,11 +61,13 @@
|
||||
</div>
|
||||
<div class="box-content-row box-content-row-checkbox" appBoxRow>
|
||||
<label for="capitalize">{{'capitalize' | i18n}}</label>
|
||||
<input id="capitalize" type="checkbox" (change)="saveOptions()" [(ngModel)]="options.capitalize">
|
||||
<input id="capitalize" type="checkbox" (change)="saveOptions()" [(ngModel)]="options.capitalize"
|
||||
[disabled]="enforcedPolicyOptions?.capitalize">
|
||||
</div>
|
||||
<div class="box-content-row box-content-row-checkbox" appBoxRow>
|
||||
<label for="include-number">{{'includeNumber' | i18n}}</label>
|
||||
<input id="include-number" type="checkbox" (change)="saveOptions()" [(ngModel)]="options.includeNumber">
|
||||
<input id="include-number" type="checkbox" (change)="saveOptions()" [(ngModel)]="options.includeNumber"
|
||||
[disabled]="enforcedPolicyOptions?.includeNumber">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user