userName: ['', [Validators.required]],
password: ['', [Validators.required]]
});
userName: ['', [Validators.required]],
password: ['', [Validators.required]]
});
- this.isAdminShow = localStorage.getItem('admin_show') === 'true' ? true : false;
- this.isUserShow = localStorage.getItem('user_show') === 'true' ? true : false;
+ this.isAdminShow = sessionStorage.getItem('admin_show') === 'true' ? true : false;
+ this.isUserShow = sessionStorage.getItem('user_show') === 'true' ? true : false;
}, (err: HttpErrorResponse): void => {
this.isLoadingResults = false;
this.restService.handleError(err, 'post');
}, (err: HttpErrorResponse): void => {
this.isLoadingResults = false;
this.restService.handleError(err, 'post');
if (userID !== '') {
this.isLoadingResults = true;
this.restService.getResource(environment.USERS_URL + '/' + userID).subscribe((userDetails: UserDetail): void => {
if (userID !== '') {
this.isLoadingResults = true;
this.restService.getResource(environment.USERS_URL + '/' + userID).subscribe((userDetails: UserDetail): void => {
this.accountExpireMessage = this.translateService.instant('PAGE.LOGIN.ACCOUNTEXPIRE');
this.passwordExpireMessage = this.translateService.instant('PAGE.LOGIN.PASSWORDEXPIRE');
this.daysMessage = this.translateService.instant('PAGE.LOGIN.DAYS');
this.accountExpireMessage = this.translateService.instant('PAGE.LOGIN.ACCOUNTEXPIRE');
this.passwordExpireMessage = this.translateService.instant('PAGE.LOGIN.PASSWORDEXPIRE');
this.daysMessage = this.translateService.instant('PAGE.LOGIN.DAYS');
- this.lastLogin = localStorage.getItem('last_login');
- this.failedAttempts = localStorage.getItem('failed_count');
+ this.lastLogin = sessionStorage.getItem('last_login');
+ this.failedAttempts = sessionStorage.getItem('failed_count');
if (this.accountNoOfDays !== '0' && this.passwordNoOfDays !== '0' &&
this.accountNoOfDays !== '1' && this.passwordNoOfDays !== '1') {
this.showToaster();
if (this.accountNoOfDays !== '0' && this.passwordNoOfDays !== '0' &&
this.accountNoOfDays !== '1' && this.passwordNoOfDays !== '1') {
this.showToaster();