remember email on login
This commit is contained in:
parent
3ce9d5082f
commit
3fc7cf4199
2
jslib
2
jslib
|
@ -1 +1 @@
|
||||||
Subproject commit bded5eb625e3eb8f7577ad3da54d5c3b7e543eb0
|
Subproject commit 747cd6373305042640f5f0d861eda0fdeb22cab7
|
|
@ -19,14 +19,13 @@
|
||||||
<div class="box-content-row" appBoxRow>
|
<div class="box-content-row" appBoxRow>
|
||||||
<label for="email">{{'emailAddress' | i18n}}</label>
|
<label for="email">{{'emailAddress' | i18n}}</label>
|
||||||
<input id="email" type="text" name="Email" [(ngModel)]="email" required
|
<input id="email" type="text" name="Email" [(ngModel)]="email" required
|
||||||
[appAutofocus]="email === ''" inputmode="email" appInputVerbatim="false">
|
inputmode="email" appInputVerbatim="false">
|
||||||
</div>
|
</div>
|
||||||
<div class="box-content-row box-content-row-flex" appBoxRow>
|
<div class="box-content-row box-content-row-flex" appBoxRow>
|
||||||
<div class="row-main">
|
<div class="row-main">
|
||||||
<label for="masterPassword">{{'masterPass' | i18n}}</label>
|
<label for="masterPassword">{{'masterPass' | i18n}}</label>
|
||||||
<input id="masterPassword" type="{{showPassword ? 'text' : 'password'}}" name="MasterPassword"
|
<input id="masterPassword" type="{{showPassword ? 'text' : 'password'}}" name="MasterPassword"
|
||||||
class="monospaced" [(ngModel)]="masterPassword" required [appAutofocus]="email !== ''"
|
class="monospaced" [(ngModel)]="masterPassword" required appInputVerbatim>
|
||||||
appInputVerbatim>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="action-buttons">
|
<div class="action-buttons">
|
||||||
<a class="row-btn" href="#" appStopClick appBlurClick
|
<a class="row-btn" href="#" appStopClick appBlurClick
|
||||||
|
|
|
@ -6,6 +6,7 @@ import { Angulartics2 } from 'angulartics2';
|
||||||
|
|
||||||
import { AuthService } from 'jslib/abstractions/auth.service';
|
import { AuthService } from 'jslib/abstractions/auth.service';
|
||||||
import { I18nService } from 'jslib/abstractions/i18n.service';
|
import { I18nService } from 'jslib/abstractions/i18n.service';
|
||||||
|
import { StorageService } from 'jslib/abstractions/storage.service';
|
||||||
import { SyncService } from 'jslib/abstractions/sync.service';
|
import { SyncService } from 'jslib/abstractions/sync.service';
|
||||||
|
|
||||||
import { LoginComponent as BaseLoginComponent } from 'jslib/angular/components/login.component';
|
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 {
|
export class LoginComponent extends BaseLoginComponent {
|
||||||
constructor(authService: AuthService, router: Router,
|
constructor(authService: AuthService, router: Router,
|
||||||
analytics: Angulartics2, toasterService: ToasterService,
|
analytics: Angulartics2, toasterService: ToasterService,
|
||||||
i18nService: I18nService, private syncService: SyncService) {
|
i18nService: I18nService, private syncService: SyncService, storageService: StorageService) {
|
||||||
super(authService, router, analytics, toasterService, i18nService);
|
super(authService, router, analytics, toasterService, i18nService, storageService);
|
||||||
super.onSuccessfullLogin = () => {
|
super.onSuccessfullLogin = () => {
|
||||||
return syncService.fullSync(true);
|
return syncService.fullSync(true);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue