2018-06-26 02:49:49 +02:00
|
|
|
<app-callout type="warning">{{'loggedOutWarning' | i18n}}</app-callout>
|
2018-07-30 14:00:23 +02:00
|
|
|
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate autocomplete="off">
|
2018-06-21 21:30:17 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="currentMasterPassword">{{'currentMasterPass' | i18n}}</label>
|
|
|
|
<input id="currentMasterPassword" type="password" name="MasterPasswordHash" class="form-control" [(ngModel)]="currentMasterPassword"
|
2018-07-13 20:50:21 +02:00
|
|
|
required appInputVerbatim>
|
2018-06-21 21:30:17 +02:00
|
|
|
</div>
|
2018-08-28 04:40:03 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-6">
|
2018-06-21 21:30:17 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="newMasterPassword">{{'newMasterPass' | i18n}}</label>
|
2018-11-13 05:00:58 +01:00
|
|
|
<input id="newMasterPassword" type="password" name="NewMasterPasswordHash" class="form-control mb-1" [(ngModel)]="newMasterPassword"
|
|
|
|
(input)="updatePasswordStrength()" required appInputVerbatim autocomplete="new-password">
|
|
|
|
<app-password-strength [score]="masterPasswordScore" [showText]="true"></app-password-strength>
|
2018-06-21 21:30:17 +02:00
|
|
|
</div>
|
2018-08-28 04:40:03 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-6">
|
2018-06-21 21:30:17 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="confirmNewMasterPassword">{{'confirmNewMasterPass' | i18n}}</label>
|
|
|
|
<input id="confirmNewMasterPassword" type="password" name="ConfirmNewMasterPasswordHash" class="form-control" [(ngModel)]="confirmNewMasterPassword"
|
2018-07-30 14:00:23 +02:00
|
|
|
required appInputVerbatim autocomplete="new-password">
|
2018-06-21 21:30:17 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-13 17:06:16 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-check">
|
|
|
|
<input class="form-check-input" type="checkbox" id="rotateEncKey" name="RotateEncKey" [(ngModel)]="rotateEncKey"
|
|
|
|
(change)="showEncKeyWarning()">
|
|
|
|
<label class="form-check-label" for="rotateEncKey">
|
|
|
|
{{'rotateAccountEncKey' | i18n}}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-18 05:15:15 +02:00
|
|
|
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
|
|
|
|
<i class="fa fa-spinner fa-spin" title="{{'loading' | i18n}}"></i>
|
2018-06-21 21:30:17 +02:00
|
|
|
<span>{{'changeMasterPassword' | i18n}}</span>
|
|
|
|
</button>
|
|
|
|
</form>
|