1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 11:13:46 +00:00

Enforce passphrase policy (#490)

* Update jslib and initial commit for passphrase policy

* Removed unused strings

* Pulling in latest jslib (44b86f5 -> 36241e9)

* Made revision requests

Co-authored-by: Vincent Salucci <vsalucci@bitwarden.com>
This commit is contained in:
Vincent Salucci
2020-03-11 10:35:12 -05:00
committed by GitHub
parent 84dde72990
commit d255f6add4
5 changed files with 59 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
<div class="page-header">
<h1>{{'passwordGenerator' | i18n}}</h1>
</div>
<app-callout type="info" *ngIf="policyInEffect">
<app-callout type="info" *ngIf="enforcedPolicyOptions?.inEffect()">
{{'passwordGeneratorPolicyInEffect' | i18n}}
</app-callout>
<div class="card card-password bg-light my-4">
@@ -37,12 +37,12 @@
<div class="form-group">
<div class="form-check">
<input id="capitalize" class="form-check-input" type="checkbox" (change)="saveOptions()"
[(ngModel)]="options.capitalize">
[(ngModel)]="options.capitalize" [disabled]="enforcedPolicyOptions?.capitalize">
<label for="capitalize" class="form-check-label">{{'capitalize' | i18n}}</label>
</div>
<div class="form-check">
<input id="include-number" class="form-check-input" type="checkbox" (change)="saveOptions()"
[(ngModel)]="options.includeNumber">
[(ngModel)]="options.includeNumber" [disabled]="enforcedPolicyOptions?.includeNumber">
<label for="include-number" class="form-check-label">{{'includeNumber' | i18n}}</label>
</div>
</div>