2020-07-16 15:18:25 +02:00
|
|
|
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" class="container" ngNativeValidate>
|
2018-06-09 19:59:09 +02:00
|
|
|
<div class="row justify-content-md-center mt-5">
|
|
|
|
<div class="col-5">
|
|
|
|
<p class="text-center mb-4">
|
2019-10-11 17:22:21 +02:00
|
|
|
<i class="fa fa-lock fa-4x text-muted" aria-hidden="true"></i>
|
2018-06-09 19:59:09 +02:00
|
|
|
</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">
|
2018-06-09 19:59:09 +02:00
|
|
|
<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
|
2020-07-16 15:18:25 +02:00
|
|
|
type="button"
|
|
|
|
class="ml-1 btn btn-link"
|
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
2019-02-21 22:50:37 +01:00
|
|
|
(click)="togglePassword()"
|
2020-07-16 15:18:25 +02:00
|
|
|
>
|
|
|
|
<i
|
|
|
|
class="fa fa-lg"
|
|
|
|
aria-hidden="true"
|
2018-07-18 05:21:23 +02:00
|
|
|
[ngClass]="{ 'fa-eye': !showPassword, 'fa-eye-slash': showPassword }"
|
|
|
|
></i>
|
2018-06-09 19:59:09 +02:00
|
|
|
</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 />
|
2018-06-09 19:59:09 +02:00
|
|
|
<div class="d-flex">
|
2021-12-17 15:57:11 +01:00
|
|
|
<button
|
|
|
|
type="submit"
|
2020-07-16 15:18:25 +02:00
|
|
|
class="btn btn-primary btn-block btn-submit"
|
|
|
|
[disabled]="form.loading"
|
2021-12-17 15:57:11 +01:00
|
|
|
>
|
|
|
|
<span>
|
2020-07-16 15:18:25 +02:00
|
|
|
<i class="fa fa-unlock-alt" aria-hidden="true"></i> {{ "unlock" | i18n }}
|
2021-12-17 15:57:11 +01:00
|
|
|
</span>
|
|
|
|
<i
|
2020-07-16 15:18:25 +02:00
|
|
|
class="fa fa-spinner fa-spin"
|
2019-10-11 16:35:24 +02:00
|
|
|
title="{{ 'loading' | i18n }}"
|
2020-07-16 15:18:25 +02:00
|
|
|
aria-hidden="true"
|
2021-12-17 15:57:11 +01:00
|
|
|
></i>
|
2018-06-09 19:59:09 +02:00
|
|
|
</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
|
|
|
>
|
2018-06-09 19:59:09 +02:00
|
|
|
{{ "logOut" | i18n }}
|
|
|
|
</button>
|
2021-12-17 15:57:11 +01:00
|
|
|
</div>
|
2018-06-09 19:59:09 +02:00
|
|
|
</div>
|
2021-12-17 15:57:11 +01:00
|
|
|
</div>
|
2018-06-09 19:59:09 +02:00
|
|
|
</div>
|
2021-12-17 15:57:11 +01:00
|
|
|
</div>
|
2018-06-09 19:59:09 +02:00
|
|
|
</form>
|