From 01fa50b4801d99d0e043aeed27178e0d1cdd9a73 Mon Sep 17 00:00:00 2001 From: richard-loafle <44828666+richard-loafle@users.noreply.github.com> Date: Tue, 7 Apr 2020 14:31:36 +0900 Subject: [PATCH] bug fixed --- .../account/components/login.section.component.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/app/sections/account/components/login.section.component.ts b/src/app/sections/account/components/login.section.component.ts index 10da32b..ebcc015 100644 --- a/src/app/sections/account/components/login.section.component.ts +++ b/src/app/sections/account/components/login.section.component.ts @@ -93,6 +93,19 @@ export class LoginSectionComponent implements OnInit, OnDestroy { .subscribe((param) => { this.loginTry = param.value as LoginTry; }); + + if (!!this.userStore && this.userStore.rememberMe) { + this.chkUseRememberMe.checked = true; + } + + if ( + !!this.userStore && + !!this.userStore.settings && + !!this.userStore.settings.general && + this.userStore.settings.general.autoLogin + ) { + this.chkUseAutoLogin.checked = true; + } } ngOnDestroy(): void {