2022-09-27 00:26:10 +02:00
|
|
|
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" [formGroup]="formGroup">
|
2018-04-04 20:19:44 +02:00
|
|
|
<header>
|
2022-10-28 20:54:55 +02:00
|
|
|
<h1 class="login-center">
|
|
|
|
<span class="title">{{ "logIn" | i18n }}</span>
|
2021-12-21 15:43:35 +01:00
|
|
|
</h1>
|
2018-04-04 20:19:44 +02:00
|
|
|
</header>
|
2022-04-29 02:06:33 +02:00
|
|
|
<main tabindex="-1">
|
2018-04-05 16:29:11 +02:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-content">
|
2021-11-02 23:28:53 +01:00
|
|
|
<div class="box-content-row box-content-row-flex" appBoxRow>
|
2018-04-04 20:19:44 +02:00
|
|
|
<div class="row-main">
|
2023-02-05 16:57:21 +01:00
|
|
|
<input id="email" type="text" formControlName="email" [hidden]="true" />
|
|
|
|
<input
|
|
|
|
id="rememberEmail"
|
|
|
|
type="checkbox"
|
|
|
|
formControlName="rememberEmail"
|
|
|
|
[hidden]="true"
|
|
|
|
/>
|
2018-04-04 20:19:44 +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"
|
2018-04-04 20:19:44 +02:00
|
|
|
type="{{ showPassword ? 'text' : 'password' }}"
|
|
|
|
class="monospaced"
|
2022-09-27 00:26:10 +02:00
|
|
|
formControlName="masterPassword"
|
2018-04-04 20:19:44 +02:00
|
|
|
appInputVerbatim
|
2022-11-01 19:00:50 +01:00
|
|
|
appAutofocus
|
2021-12-21 15:43:35 +01:00
|
|
|
/>
|
2021-11-02 23:28:53 +01:00
|
|
|
</div>
|
2018-04-04 20:19:44 +02:00
|
|
|
<div class="action-buttons">
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="row-btn"
|
2021-07-31 21:03:51 +02:00
|
|
|
appStopClick
|
2018-04-04 20:19:44 +02:00
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
|
|
|
(click)="togglePassword()"
|
2019-10-08 23:04:44 +02:00
|
|
|
[attr.aria-pressed]="showPassword"
|
|
|
|
>
|
|
|
|
<i
|
2022-01-28 11:53:06 +01:00
|
|
|
class="bwi bwi-lg"
|
|
|
|
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
|
2019-10-08 23:04:44 +02:00
|
|
|
aria-hidden="true"
|
|
|
|
></i>
|
2018-04-04 14:27:31 +02:00
|
|
|
</button>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2018-04-04 14:27:31 +02:00
|
|
|
</div>
|
2018-04-05 16:29:11 +02:00
|
|
|
<div class="box-content-row" [hidden]="!showCaptcha()">
|
2023-09-07 18:32:45 +02:00
|
|
|
<iframe
|
|
|
|
id="hcaptcha_iframe"
|
|
|
|
height="80"
|
|
|
|
sandbox="allow-scripts allow-same-origin"
|
|
|
|
></iframe>
|
2018-04-04 14:27:31 +02:00
|
|
|
</div>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2022-10-28 20:54:55 +02:00
|
|
|
<div class="box-footer">
|
|
|
|
<button type="button" class="btn link" routerLink="/hint" (click)="setFormValues()">
|
|
|
|
<b>{{ "getMasterPasswordHint" | i18n }}</b>
|
|
|
|
</button>
|
|
|
|
</div>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2022-02-15 23:06:35 +01:00
|
|
|
<app-private-mode-warning></app-private-mode-warning>
|
2022-10-28 20:54:55 +02:00
|
|
|
<div class="content login-buttons">
|
|
|
|
<button type="submit" class="btn primary block" [disabled]="form.loading">
|
|
|
|
<span [hidden]="form.loading"
|
|
|
|
><b>{{ "logInWithMasterPassword" | i18n }}</b></span
|
|
|
|
>
|
|
|
|
<i class="bwi bwi-spinner bwi-lg bwi-spin" [hidden]="!form.loading" aria-hidden="true"></i>
|
|
|
|
</button>
|
2023-02-05 16:57:21 +01:00
|
|
|
<div class="tw-mb-3" *ngIf="showLoginWithDevice && showPasswordless">
|
|
|
|
<button type="button" class="btn block" (click)="startPasswordlessLogin()">
|
|
|
|
<span> <i class="bwi bwi-mobile"></i> {{ "loginWithDevice" | i18n }} </span>
|
|
|
|
</button>
|
|
|
|
</div>
|
2022-10-28 20:54:55 +02:00
|
|
|
<button type="button" (click)="launchSsoBrowser()" class="btn block">
|
2022-11-02 20:52:49 +01:00
|
|
|
<i class="bwi bwi-provider" aria-hidden="true"></i> {{ "enterpriseSingleSignOn" | i18n }}
|
2022-10-28 20:54:55 +02:00
|
|
|
</button>
|
|
|
|
<div class="small">
|
|
|
|
<p class="no-margin">{{ "loggingInAs" | i18n }} {{ loggedEmail }}</p>
|
|
|
|
<a routerLink="/home">{{ "notYou" | i18n }}</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-29 02:06:33 +02:00
|
|
|
</main>
|
2018-04-04 04:14:54 +02:00
|
|
|
</form>
|