2018-02-01 04:35:44 +01:00
|
|
|
<form id="login-page" #form (ngSubmit)="submit()" [appApiAction]="formPromise">
|
2018-01-31 20:19:21 +01:00
|
|
|
<div class="content">
|
|
|
|
<img src="../../images/logo@2x.png" alt="bitwarden">
|
2018-02-02 04:59:04 +01:00
|
|
|
<p class="lead">{{'loginOrCreateNewAccount' | i18n}}</p>
|
2018-01-31 20:19:21 +01:00
|
|
|
<div class="box last">
|
|
|
|
<div class="box-content">
|
|
|
|
<div class="box-content-row" appBoxRow>
|
|
|
|
<label for="email">{{'emailAddress' | i18n}}</label>
|
|
|
|
<input id="email" type="text" name="Email" [(ngModel)]="email" required
|
|
|
|
[appAutofocus]="email === ''">
|
|
|
|
</div>
|
2018-02-24 19:45:41 +01:00
|
|
|
<div class="box-content-row box-content-row-flex" appBoxRow>
|
|
|
|
<div class="row-main">
|
|
|
|
<label for="masterPassword">{{'masterPass' | i18n}}</label>
|
|
|
|
<input id="masterPassword" type="{{showPassword ? 'text' : 'password'}}" name="MasterPassword"
|
|
|
|
class="monospaced" [(ngModel)]="masterPassword" required [appAutofocus]="email !== ''">
|
|
|
|
</div>
|
|
|
|
<div class="action-buttons">
|
|
|
|
<a class="row-btn" href="#" appStopClick appBlurClick
|
|
|
|
title="{{'toggleVisibility' | i18n}}" (click)="togglePassword()">
|
|
|
|
<i class="fa fa-lg"
|
|
|
|
[ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
2018-01-30 23:24:02 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-31 20:19:21 +01:00
|
|
|
</div>
|
|
|
|
<div class="buttons">
|
|
|
|
<button type="submit" class="btn primary block" [disabled]="form.loading" appBlurClick>
|
|
|
|
<span [hidden]="form.loading"><i class="fa fa-sign-in"></i> {{'logIn' | i18n}}</span>
|
|
|
|
<i class="fa fa-spinner fa-spin" [hidden]="!form.loading"></i>
|
|
|
|
</button>
|
|
|
|
<a routerLink="/register" class="btn block">
|
|
|
|
<i class="fa fa-pencil-square-o"></i> {{'createAccount' | i18n}}
|
2018-01-30 23:24:02 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
2018-01-31 20:19:21 +01:00
|
|
|
<div class="sub-options">
|
2018-01-31 23:06:14 +01:00
|
|
|
<a routerLink="/hint">{{'getMasterPasswordHint' | i18n}}</a>
|
2018-01-31 20:19:21 +01:00
|
|
|
</div>
|
2018-02-02 18:31:21 +01:00
|
|
|
<a href="#" appStopClick (click)="settings()" class="settings-icon">
|
2018-01-31 20:19:21 +01:00
|
|
|
<i class="fa fa-cog fa-lg"></i><span> {{'settings' | i18n}}</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</form>
|
2018-02-02 18:31:21 +01:00
|
|
|
<ng-template #environment></ng-template>
|