2018-02-10 04:47:53 +01:00
|
|
|
<form id="lock-page" (ngSubmit)="submit()">
|
2021-12-20 15:47:17 +01:00
|
|
|
<div class="content">
|
2022-01-27 18:21:53 +01:00
|
|
|
<p aria-hidden="true"><i class="bwi bwi-lock bwi-4x text-muted"></i></p>
|
2021-12-20 15:47:17 +01:00
|
|
|
<p>{{ "yourVaultIsLocked" | i18n }}</p>
|
|
|
|
<div class="box last">
|
|
|
|
<div class="box-content">
|
|
|
|
<div class="box-content-row box-content-row-flex" appBoxRow *ngIf="!hideInput">
|
|
|
|
<div class="row-main" *ngIf="pinLock">
|
|
|
|
<label for="pin">{{ "pin" | i18n }}</label>
|
|
|
|
<input
|
|
|
|
id="pin"
|
|
|
|
type="{{ showPassword ? 'text' : 'password' }}"
|
|
|
|
name="PIN"
|
|
|
|
class="monospaced"
|
|
|
|
[(ngModel)]="pin"
|
|
|
|
required
|
|
|
|
appInputVerbatim
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div class="row-main" *ngIf="!pinLock">
|
|
|
|
<label for="masterPassword">{{ "masterPass" | i18n }}</label>
|
|
|
|
<input
|
|
|
|
id="masterPassword"
|
|
|
|
type="{{ showPassword ? 'text' : 'password' }}"
|
|
|
|
name="MasterPassword"
|
|
|
|
class="monospaced"
|
|
|
|
[(ngModel)]="masterPassword"
|
|
|
|
required
|
|
|
|
appInputVerbatim
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div class="action-buttons">
|
|
|
|
<a
|
|
|
|
class="row-btn"
|
|
|
|
href="#"
|
|
|
|
appStopClick
|
|
|
|
appBlurClick
|
|
|
|
role="button"
|
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
2022-03-27 22:42:47 +02:00
|
|
|
[attr.aria-pressed]="showPassword"
|
2021-12-20 15:47:17 +01:00
|
|
|
(click)="togglePassword()"
|
|
|
|
>
|
|
|
|
<i
|
2022-01-27 18:21:53 +01:00
|
|
|
class="bwi bwi-lg"
|
2021-12-20 15:47:17 +01:00
|
|
|
aria-hidden="true"
|
2022-01-27 18:21:53 +01:00
|
|
|
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
|
2021-12-20 15:47:17 +01:00
|
|
|
></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
2020-07-23 19:32:36 +02:00
|
|
|
</div>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
|
|
|
{{ "loggedInAsOn" | i18n: email:webVaultHostname }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="buttons with-rows">
|
|
|
|
<div class="buttons-row" *ngIf="supportsBiometric && biometricLock">
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="btn block"
|
|
|
|
[ngClass]="{ 'primary font-weight-bold': hideInput }"
|
|
|
|
appBlurClick
|
|
|
|
(click)="unlockBiometric()"
|
|
|
|
>
|
|
|
|
{{ biometricText | i18n }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="buttons-row">
|
|
|
|
<button type="submit" class="btn primary block" appBlurClick *ngIf="!hideInput">
|
2022-01-27 18:21:53 +01:00
|
|
|
<i class="bwi bwi-unlock" aria-hidden="true"></i> <b>{{ "unlock" | i18n }}</b>
|
2021-12-20 15:47:17 +01:00
|
|
|
</button>
|
|
|
|
<button type="button" class="btn block" appBlurClick (click)="logOut()">
|
|
|
|
{{ "logOut" | i18n }}
|
|
|
|
</button>
|
|
|
|
</div>
|
2018-02-10 04:47:53 +01:00
|
|
|
</div>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-02-10 04:47:53 +01:00
|
|
|
</form>
|