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

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

67 lines
2.3 KiB
HTML
Raw Normal View History

<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" class="container" ngNativeValidate>
<div class="row justify-content-md-center mt-5">
<div class="col-5">
<p class="text-center mb-4">
<i class="bwi bwi-lock bwi-4x text-muted" aria-hidden="true"></i>
</p>
<p class="lead text-center mx-4 mb-4">{{ "yourVaultIsLocked" | i18n }}</p>
2018-07-25 18:13:18 +02:00
<div class="card d-block">
<div class="card-body">
<div class="form-group">
<label for="masterPassword">{{ "masterPass" | i18n }}</label>
<div class="d-flex">
2019-02-21 22:50:37 +01:00
<input
id="masterPassword"
type="{{ showPassword ? 'text' : 'password' }}"
name="MasterPassword"
class="text-monospace form-control"
[(ngModel)]="masterPassword"
required
appAutofocus
appInputVerbatim
/>
2019-10-11 16:35:24 +02:00
<button
type="button"
class="ml-1 btn btn-link"
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
2019-02-21 22:50:37 +01:00
(click)="togglePassword()"
>
<i
class="bwi bwi-lg"
aria-hidden="true"
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
2018-07-18 05:21:23 +02:00
></i>
</button>
</div>
2019-06-04 06:06:15 +02:00
<small class="text-muted form-text">
{{ "loggedInAsEmailOn" | i18n: email : webVaultHostname }}
2021-12-17 15:57:11 +01:00
</small>
</div>
<hr />
<div class="d-flex">
2021-12-17 15:57:11 +01:00
<button
type="submit"
class="btn btn-primary btn-block btn-submit"
[disabled]="form.loading"
2021-12-17 15:57:11 +01:00
>
<span> <i class="bwi bwi-unlock" aria-hidden="true"></i> {{ "unlock" | i18n }} </span>
2021-12-17 15:57:11 +01:00
<i
class="bwi bwi-spinner bwi-spin"
2019-10-11 16:35:24 +02:00
title="{{ 'loading' | i18n }}"
aria-hidden="true"
2021-12-17 15:57:11 +01:00
></i>
</button>
2021-12-17 15:57:11 +01:00
<button
2018-07-18 05:21:23 +02:00
type="button"
class="btn btn-outline-secondary btn-block ml-2 mt-0"
(click)="logOut()"
2021-12-17 15:57:11 +01:00
>
{{ "logOut" | i18n }}
</button>
2021-12-17 15:57:11 +01:00
</div>
</div>
2021-12-17 15:57:11 +01:00
</div>
</div>
2021-12-17 15:57:11 +01:00
</div>
</form>