2021-11-09 17:01:22 +01:00
|
|
|
<ng-container *ngIf="!usesKeyConnector">
|
|
|
|
<label for="masterPassword">{{'masterPass' | i18n}}</label>
|
|
|
|
<input id="masterPassword" type="password" name="MasterPasswordHash" class="form-control"
|
|
|
|
[formControl]="secret" required appAutofocus appInputVerbatim>
|
2021-11-18 16:24:15 +01:00
|
|
|
<small class="form-text text-muted">{{'confirmIdentity' | i18n}}</small>
|
2021-11-09 17:01:22 +01:00
|
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="usesKeyConnector">
|
|
|
|
<div class="form-group">
|
2021-11-17 11:57:05 +01:00
|
|
|
<label class="d-block">{{'sendVerificationCode' | i18n}}</label>
|
|
|
|
<button type="button" class="btn btn-outline-secondary" (click)="requestOTP()" [disabled]="disableRequestOTP">
|
|
|
|
{{'sendCode' | i18n}}
|
2021-11-09 17:01:22 +01:00
|
|
|
</button>
|
2021-11-17 11:57:05 +01:00
|
|
|
<span class="ml-2 text-success" role="alert" @sent *ngIf="sentCode">
|
|
|
|
<i class="fa fa-check-circle-o" aria-hidden="true"></i>
|
|
|
|
{{'codeSent' | i18n}}
|
|
|
|
</span>
|
2021-11-09 17:01:22 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="verificationCode">{{'verificationCode' | i18n}}</label>
|
|
|
|
<input id="verificationCode" type="input" name="verificationCode" class="form-control"
|
|
|
|
[formControl]="secret" required appAutofocus appInputVerbatim>
|
2021-11-17 11:57:05 +01:00
|
|
|
<small class="form-text text-muted">{{'confirmIdentity' | i18n}}</small>
|
2021-11-09 17:01:22 +01:00
|
|
|
</div>
|
|
|
|
</ng-container>
|