From 07c505187decc1d81a61db4938f8d8111b906990 Mon Sep 17 00:00:00 2001 From: Rajnikant Date: Tue, 31 May 2022 13:40:00 +0530 Subject: [PATCH] update user case 2 --- src/app/components/login/login.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/components/login/login.component.ts b/src/app/components/login/login.component.ts index 022e98c4..eac9604e 100644 --- a/src/app/components/login/login.component.ts +++ b/src/app/components/login/login.component.ts @@ -63,6 +63,8 @@ export class LoginComponent implements OnInit, DoCheck { let getCurrentUser = JSON.parse(localStorage.getItem(`isRememberMe`)) ?? null; if (getCurrentUser && getCurrentUser.isRememberMe) { + this.loginForm.get('username').setValue(getCurrentUser.username); + this.loginForm.get('password').setValue(getCurrentUser.password); this.isRememberMeCheked = getCurrentUser.isRememberMe; } }