update user case 2

This commit is contained in:
Rajnikant 2022-05-31 13:40:00 +05:30
parent eb07abe786
commit 07c505187d

View File

@ -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;
}
}