|
|
|
|
@ -4,50 +4,56 @@
|
|
|
|
|
<bit-label>{{ "turnOn" | i18n }}</bit-label>
|
|
|
|
|
</bit-form-control>
|
|
|
|
|
|
|
|
|
|
<bit-form-field>
|
|
|
|
|
<bit-label>{{ "passwordTypePolicyOverride" | i18n }}</bit-label>
|
|
|
|
|
<bit-select formControlName="overridePasswordType" id="overrideType">
|
|
|
|
|
<bit-option
|
|
|
|
|
*ngFor="let o of overridePasswordTypeOptions"
|
|
|
|
|
[value]="o.value"
|
|
|
|
|
[label]="o.name"
|
|
|
|
|
></bit-option>
|
|
|
|
|
</bit-select>
|
|
|
|
|
</bit-form-field>
|
|
|
|
|
<div class="tw-grid tw-grid-cols-12 tw-gap-4">
|
|
|
|
|
<bit-form-field class="tw-col-span-6 tw-mb-0">
|
|
|
|
|
<bit-label>{{ "overridePasswordTypePolicy" | i18n }}</bit-label>
|
|
|
|
|
<bit-select formControlName="overridePasswordType" id="overrideType">
|
|
|
|
|
<bit-option
|
|
|
|
|
*ngFor="let o of overridePasswordTypeOptions"
|
|
|
|
|
[value]="o.value"
|
|
|
|
|
[label]="o.name"
|
|
|
|
|
></bit-option>
|
|
|
|
|
</bit-select>
|
|
|
|
|
</bit-form-field>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- password-specific policies -->
|
|
|
|
|
<div *ngIf="showPasswordPolicies$ | async">
|
|
|
|
|
<h3 bitTypography="h3" class="tw-mt-4">{{ "password" | i18n }}</h3>
|
|
|
|
|
<bit-form-field>
|
|
|
|
|
<bit-label>{{ "minLength" | i18n }}</bit-label>
|
|
|
|
|
<input
|
|
|
|
|
bitInput
|
|
|
|
|
type="number"
|
|
|
|
|
[min]="minLengthMin"
|
|
|
|
|
[max]="minLengthMax"
|
|
|
|
|
formControlName="minLength"
|
|
|
|
|
/>
|
|
|
|
|
</bit-form-field>
|
|
|
|
|
<bit-form-field>
|
|
|
|
|
<bit-label>{{ "minNumbers" | i18n }}</bit-label>
|
|
|
|
|
<input
|
|
|
|
|
bitInput
|
|
|
|
|
type="number"
|
|
|
|
|
[min]="minNumbersMin"
|
|
|
|
|
[max]="minNumbersMax"
|
|
|
|
|
formControlName="minNumbers"
|
|
|
|
|
/>
|
|
|
|
|
</bit-form-field>
|
|
|
|
|
<bit-form-field>
|
|
|
|
|
<bit-label>{{ "minSpecial" | i18n }}</bit-label>
|
|
|
|
|
<input
|
|
|
|
|
bitInput
|
|
|
|
|
type="number"
|
|
|
|
|
[min]="minSpecialMin"
|
|
|
|
|
[max]="minSpecialMax"
|
|
|
|
|
formControlName="minSpecial"
|
|
|
|
|
/>
|
|
|
|
|
</bit-form-field>
|
|
|
|
|
<div class="tw-grid tw-grid-cols-12 tw-gap-4">
|
|
|
|
|
<bit-form-field class="tw-col-span-6">
|
|
|
|
|
<bit-label>{{ "minLength" | i18n }}</bit-label>
|
|
|
|
|
<input
|
|
|
|
|
bitInput
|
|
|
|
|
type="number"
|
|
|
|
|
[min]="minLengthMin"
|
|
|
|
|
[max]="minLengthMax"
|
|
|
|
|
formControlName="minLength"
|
|
|
|
|
/>
|
|
|
|
|
</bit-form-field>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tw-grid tw-grid-cols-12 tw-gap-4">
|
|
|
|
|
<bit-form-field class="tw-col-span-6">
|
|
|
|
|
<bit-label>{{ "minNumbers" | i18n }}</bit-label>
|
|
|
|
|
<input
|
|
|
|
|
bitInput
|
|
|
|
|
type="number"
|
|
|
|
|
[min]="minNumbersMin"
|
|
|
|
|
[max]="minNumbersMax"
|
|
|
|
|
formControlName="minNumbers"
|
|
|
|
|
/>
|
|
|
|
|
</bit-form-field>
|
|
|
|
|
<bit-form-field class="tw-col-span-6">
|
|
|
|
|
<bit-label>{{ "minSpecial" | i18n }}</bit-label>
|
|
|
|
|
<input
|
|
|
|
|
bitInput
|
|
|
|
|
type="number"
|
|
|
|
|
[min]="minSpecialMin"
|
|
|
|
|
[max]="minSpecialMax"
|
|
|
|
|
formControlName="minSpecial"
|
|
|
|
|
/>
|
|
|
|
|
</bit-form-field>
|
|
|
|
|
</div>
|
|
|
|
|
<bit-form-control>
|
|
|
|
|
<input type="checkbox" bitCheckbox formControlName="useUpper" id="useUpper" />
|
|
|
|
|
<bit-label>{{ "uppercaseLabel" | i18n }}</bit-label>
|
|
|
|
|
@ -73,16 +79,18 @@
|
|
|
|
|
<!-- passphrase-specific policies -->
|
|
|
|
|
<div *ngIf="showPassphrasePolicies$ | async">
|
|
|
|
|
<h3 bitTypography="h3" class="tw-mt-4">{{ "passphrase" | i18n }}</h3>
|
|
|
|
|
<bit-form-field>
|
|
|
|
|
<bit-label>{{ "minimumNumberOfWords" | i18n }}</bit-label>
|
|
|
|
|
<input
|
|
|
|
|
bitInput
|
|
|
|
|
type="number"
|
|
|
|
|
[min]="minNumberWordsMin"
|
|
|
|
|
[max]="minNumberWordsMax"
|
|
|
|
|
formControlName="minNumberWords"
|
|
|
|
|
/>
|
|
|
|
|
</bit-form-field>
|
|
|
|
|
<div class="tw-grid tw-grid-cols-12 tw-gap-4">
|
|
|
|
|
<bit-form-field class="tw-col-span-6">
|
|
|
|
|
<bit-label>{{ "minimumNumberOfWords" | i18n }}</bit-label>
|
|
|
|
|
<input
|
|
|
|
|
bitInput
|
|
|
|
|
type="number"
|
|
|
|
|
[min]="minNumberWordsMin"
|
|
|
|
|
[max]="minNumberWordsMax"
|
|
|
|
|
formControlName="minNumberWords"
|
|
|
|
|
/>
|
|
|
|
|
</bit-form-field>
|
|
|
|
|
</div>
|
|
|
|
|
<bit-form-control>
|
|
|
|
|
<input type="checkbox" bitCheckbox formControlName="capitalize" id="capitalize" />
|
|
|
|
|
<bit-label>{{ "capitalize" | i18n }}</bit-label>
|
|
|
|
|
|