|
|
|
|
@ -12,33 +12,18 @@
@@ -12,33 +12,18 @@
|
|
|
|
|
</div> |
|
|
|
|
<div class="modal-body"> |
|
|
|
|
<app-callout type="warning">{{'loggedOutWarning' | i18n}}</app-callout> |
|
|
|
|
<app-callout type="info" *ngIf="enforcedPolicyOptions"> |
|
|
|
|
{{'masterPasswordPolicyInEffect' | i18n}} |
|
|
|
|
<ul class="mb-0"> |
|
|
|
|
<li *ngIf="enforcedPolicyOptions?.minComplexity > 0"> |
|
|
|
|
{{'policyInEffectMinComplexity' | i18n : getPasswordScoreAlertDisplay()}} |
|
|
|
|
</li> |
|
|
|
|
<li *ngIf="enforcedPolicyOptions?.minLength > 0"> |
|
|
|
|
{{'policyInEffectMinLength' | i18n : enforcedPolicyOptions?.minLength.toString()}} |
|
|
|
|
</li> |
|
|
|
|
<li *ngIf="enforcedPolicyOptions?.requireUpper"> |
|
|
|
|
{{'policyInEffectUppercase' | i18n}}</li> |
|
|
|
|
<li *ngIf="enforcedPolicyOptions?.requireLower"> |
|
|
|
|
{{'policyInEffectLowercase' | i18n}}</li> |
|
|
|
|
<li *ngIf="enforcedPolicyOptions?.requireNumbers"> |
|
|
|
|
{{'policyInEffectNumbers' | i18n}}</li> |
|
|
|
|
<li *ngIf="enforcedPolicyOptions?.requireSpecial"> |
|
|
|
|
{{'policyInEffectSpecial' | i18n : '!@#$%^&*'}}</li> |
|
|
|
|
</ul> |
|
|
|
|
<app-callout type="info" [enforcedPolicyOptions]="enforcedPolicyOptions" *ngIf="enforcedPolicyOptions"> |
|
|
|
|
</app-callout> |
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="col-6"> |
|
|
|
|
<div class="form-group"> |
|
|
|
|
<label for="masterPassword">{{'newMasterPass' | i18n}}</label> |
|
|
|
|
<input id="masterPassword" type="password" name="NewMasterPasswordHash" class="form-control mb-1" |
|
|
|
|
[(ngModel)]="masterPassword" (input)="updatePasswordStrength()" required appInputVerbatim |
|
|
|
|
<input id="masterPassword" type="password" name="NewMasterPasswordHash" |
|
|
|
|
class="form-control mb-1" [(ngModel)]="masterPassword" |
|
|
|
|
(input)="updatePasswordStrength()" required appInputVerbatim |
|
|
|
|
autocomplete="new-password"> |
|
|
|
|
<app-password-strength [score]="masterPasswordScore" [showText]="true"></app-password-strength> |
|
|
|
|
<app-password-strength [score]="masterPasswordScore" [showText]="true"> |
|
|
|
|
</app-password-strength> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="col-6"> |
|
|
|
|
@ -56,7 +41,9 @@
@@ -56,7 +41,9 @@
|
|
|
|
|
<i class="fa fa-spinner fa-spin" title="{{'loading' | i18n}}" aria-hidden="true"></i> |
|
|
|
|
<span>{{'save' | i18n}}</span> |
|
|
|
|
</button> |
|
|
|
|
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">{{'cancel' | i18n}}</button> |
|
|
|
|
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal"> |
|
|
|
|
{{'cancel' | i18n}} |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
|