diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 760308ecdf7..c23457f3d36 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -42,6 +42,7 @@ import { SUGGESTION_MODULE_PATH } from './suggestions-page/suggestions-page-rout import { MenuResolver } from './menu.resolver'; import { ThemedPageErrorComponent } from './page-error/themed-page-error.component'; import { NOTIFICATIONS_MODULE_PATH } from './admin/admin-routing-paths'; +import { ForgotPasswordCheckGuard } from './core/rest-property/forgot-password-check-guard.guard'; @NgModule({ imports: [ @@ -96,7 +97,7 @@ import { NOTIFICATIONS_MODULE_PATH } from './admin/admin-routing-paths'; path: FORGOT_PASSWORD_PATH, loadChildren: () => import('./forgot-password/forgot-password.module') .then((m) => m.ForgotPasswordModule), - canActivate: [EndUserAgreementCurrentUserGuard] + canActivate: [EndUserAgreementCurrentUserGuard, ForgotPasswordCheckGuard] }, { path: COMMUNITY_MODULE_PATH, diff --git a/src/app/core/data/feature-authorization/feature-id.ts b/src/app/core/data/feature-authorization/feature-id.ts index 45d61d26bb8..5d96c472e43 100644 --- a/src/app/core/data/feature-authorization/feature-id.ts +++ b/src/app/core/data/feature-authorization/feature-id.ts @@ -35,5 +35,6 @@ export enum FeatureID { CanRegisterDOI = 'canRegisterDOI', CanSubscribe = 'canSubscribeDso', CoarLdnEnabled = 'coarLdnEnabled', - CanSeeQA = 'canSeeQA' + CanSeeQA = 'canSeeQA', + EPersonForgotPassword = 'epersonForgotPassword' }