Feature 11034: Forgot Password in OSM
- Added support for forgot password from UI
- Added forgot password button in login page
Change-Id: I058a09356c4e2ff5d5b0e883e74f0041d1aaffea
Signed-off-by: SANDHYA.JS <sandhya.j@tataelxsi.co.in>
diff --git a/src/services/AuthGuardService.ts b/src/services/AuthGuardService.ts
index 3e0ef8f..05d3a1e 100644
--- a/src/services/AuthGuardService.ts
+++ b/src/services/AuthGuardService.ts
@@ -49,10 +49,11 @@
// 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 => {