bitwarden-estensione-browser/src/app/settings/change-password.component.html

43 lines
2.2 KiB
HTML
Raw Normal View History

2018-06-26 02:49:49 +02:00
<app-callout type="warning">{{'loggedOutWarning' | i18n}}</app-callout>
<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"
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>
<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"
required appInputVerbatim autocomplete="new-password">
2018-06-21 21:30:17 +02:00
</div>
</div>
</div>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="rotateEncKey" name="RotateEncKey" [(ngModel)]="rotateEncKey"
(change)="rotateEncKeyClicked()">
<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>