remember email on login

This commit is contained in:
Kyle Spearrin 2018-07-13 09:29:08 -04:00
parent 3ce9d5082f
commit 3fc7cf4199
3 changed files with 6 additions and 6 deletions

2
jslib

@ -1 +1 @@
Subproject commit bded5eb625e3eb8f7577ad3da54d5c3b7e543eb0
Subproject commit 747cd6373305042640f5f0d861eda0fdeb22cab7

View File

@ -19,14 +19,13 @@
<div class="box-content-row" appBoxRow>
<label for="email">{{'emailAddress' | i18n}}</label>
<input id="email" type="text" name="Email" [(ngModel)]="email" required
[appAutofocus]="email === ''" inputmode="email" appInputVerbatim="false">
inputmode="email" appInputVerbatim="false">
</div>
<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 !== ''"
appInputVerbatim>
class="monospaced" [(ngModel)]="masterPassword" required appInputVerbatim>
</div>
<div class="action-buttons">
<a class="row-btn" href="#" appStopClick appBlurClick

View File

@ -6,6 +6,7 @@ import { Angulartics2 } from 'angulartics2';
import { AuthService } from 'jslib/abstractions/auth.service';
import { I18nService } from 'jslib/abstractions/i18n.service';
import { StorageService } from 'jslib/abstractions/storage.service';
import { SyncService } from 'jslib/abstractions/sync.service';
import { LoginComponent as BaseLoginComponent } from 'jslib/angular/components/login.component';
@ -17,8 +18,8 @@ import { LoginComponent as BaseLoginComponent } from 'jslib/angular/components/l
export class LoginComponent extends BaseLoginComponent {
constructor(authService: AuthService, router: Router,
analytics: Angulartics2, toasterService: ToasterService,
i18nService: I18nService, private syncService: SyncService) {
super(authService, router, analytics, toasterService, i18nService);
i18nService: I18nService, private syncService: SyncService, storageService: StorageService) {
super(authService, router, analytics, toasterService, i18nService, storageService);
super.onSuccessfullLogin = () => {
return syncService.fullSync(true);
};