// eslint-disable-next-line deprecation/deprecation
return combineLatest(
this.authService.isLoggedIn,
- this.authService.isChangePassword
+ this.authService.isChangePassword,
+ this.authService.isForgotPassword
).pipe(
- map(([isLoggedIn, changePassword]: [boolean, boolean]): boolean => {
- if (changePassword || isLoggedIn) {
+ map(([isLoggedIn, changePassword, forgotPassword]: [boolean, boolean, boolean]): boolean => {
+ if (changePassword || isLoggedIn || forgotPassword) {
return true;
} else {
this.router.navigate(['/login']).catch((): void => {