bitwarden-estensione-browser/apps/browser/src/auth/popup/lock.component.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

86 lines
2.8 KiB
HTML
Raw Normal View History

2018-04-05 04:59:42 +02:00
<form (ngSubmit)="submit()">
<header>
<div class="left"></div>
2021-11-02 23:28:53 +01:00
<h1 class="center">
<span class="title">{{ "verifyIdentity" | i18n }}</span>
2021-11-02 23:28:53 +01:00
</h1>
2018-04-05 04:59:42 +02:00
<div class="right">
<button type="submit" *ngIf="!hideInput">{{ "unlock" | i18n }}</button>
2021-12-21 15:43:35 +01:00
</div>
2018-04-05 04:59:42 +02:00
</header>
<main tabindex="-1">
2018-04-05 16:29:11 +02:00
<div class="box">
<div class="box-content">
<div class="box-content-row box-content-row-flex" appBoxRow *ngIf="!hideInput">
2019-02-13 05:53:04 +01:00
<div class="row-main" *ngIf="pinLock">
<label for="pin">{{ "pin" | i18n }}</label>
2021-12-21 15:43:35 +01:00
<input
id="pin"
2019-02-21 22:53:57 +01:00
type="{{ showPassword ? 'text' : 'password' }}"
name="PIN"
class="monospaced"
[(ngModel)]="pin"
2021-12-21 15:43:35 +01:00
required
2019-02-21 22:53:57 +01:00
appInputVerbatim
2021-12-21 15:43:35 +01:00
/>
</div>
2019-02-13 05:53:04 +01:00
<div class="row-main" *ngIf="!pinLock">
2018-04-05 16:29:11 +02:00
<label for="masterPassword">{{ "masterPass" | i18n }}</label>
2021-12-21 15:43:35 +01:00
<input
2018-04-05 16:29:11 +02:00
id="masterPassword"
type="{{ showPassword ? 'text' : 'password' }}"
name="MasterPassword"
aria-describedby="masterPasswordHelp"
2019-02-21 22:53:57 +01:00
class="monospaced"
[(ngModel)]="masterPassword"
2021-12-21 15:43:35 +01:00
required
2019-02-21 22:53:57 +01:00
appInputVerbatim
2021-12-21 15:43:35 +01:00
/>
</div>
2018-04-05 16:29:11 +02:00
<div class="action-buttons">
2021-12-21 15:43:35 +01:00
<button
type="button"
class="row-btn"
appStopClick
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
(click)="togglePassword()"
[attr.aria-pressed]="showPassword"
2021-12-21 15:43:35 +01:00
>
<i
class="bwi bwi-lg"
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
2019-10-08 23:04:44 +02:00
aria-hidden="true"
2021-12-21 15:43:35 +01:00
></i>
</button>
2021-12-21 15:43:35 +01:00
</div>
2018-04-05 04:59:42 +02:00
</div>
2018-04-05 16:29:11 +02:00
</div>
<div id="masterPasswordHelp" class="box-footer">
2019-02-13 05:53:04 +01:00
<p>{{ "yourVaultIsLocked" | i18n }}</p>
2019-02-21 22:53:57 +01:00
{{ "loggedInAsOn" | i18n: email:webVaultHostname }}
2019-02-13 05:53:04 +01:00
</div>
2021-12-21 15:43:35 +01:00
</div>
2019-02-13 05:53:04 +01:00
<div class="box" *ngIf="biometricLock">
<div class="box-footer no-pad">
<button
type="button"
class="btn primary block"
(click)="unlockBiometric()"
appStopClick
[disabled]="pendingBiometric"
>
{{ "unlockWithBiometrics" | i18n }}
</button>
2021-12-21 15:43:35 +01:00
</div>
</div>
2018-04-05 16:29:11 +02:00
<p class="text-center">
<button type="button" appStopClick (click)="logOut()">{{ "logOut" | i18n }}</button>
2018-04-05 16:29:11 +02:00
</p>
<app-private-mode-warning></app-private-mode-warning>
<app-callout *ngIf="biometricError" type="error">{{ biometricError }}</app-callout>
<p class="text-center text-muted" *ngIf="pendingBiometric">
<i class="bwi bwi-spinner bwi-spin" aria-hidden="true"></i> {{ "awaitDesktop" | i18n }}
</p>
</main>
2018-04-05 04:59:42 +02:00
</form>