Skip to content

Commit cc8b0c9

Browse files
authored
VSB-TUO/Removed forgot site to be unavailable (#1005)
1 parent 0eb1481 commit cc8b0c9

4 files changed

Lines changed: 1 addition & 19 deletions

File tree

src/app/app-routing.module.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
BITSTREAM_MODULE_PATH,
1313
ERROR_PAGE,
1414
FORBIDDEN_PATH,
15-
FORGOT_PASSWORD_PATH,
1615
HEALTH_PAGE_PATH,
1716
INFO_MODULE_PATH,
1817
INTERNAL_SERVER_ERROR,
@@ -104,12 +103,6 @@ import { STATIC_PAGE_PATH } from './static-page/static-page-routing-paths';
104103
.then((m) => m.RegisterPageModule),
105104
canActivate: [SiteRegisterGuard]
106105
},
107-
{
108-
path: FORGOT_PASSWORD_PATH,
109-
loadChildren: () => import('./forgot-password/forgot-password.module')
110-
.then((m) => m.ForgotPasswordModule),
111-
canActivate: [EndUserAgreementCurrentUserGuard]
112-
},
113106
{
114107
path: COMMUNITY_MODULE_PATH,
115108
loadChildren: () => import('./community-page/community-page.module')

src/app/shared/log-in/methods/password/log-in-password.component.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,4 @@
3131
<a class="dropdown-item" *ngIf="canRegister$ | async" [routerLink]="[getRegisterRoute()]" [attr.data-test]="'register' | dsBrowserOnly" tabindex="0">
3232
{{ 'login.form.new-user' | translate }}
3333
</a>
34-
<a class="dropdown-item" [routerLink]="[getForgotRoute()]" [attr.data-test]="'forgot' | dsBrowserOnly" tabindex="0">
35-
{{ 'login.form.forgot-password' | translate }}
36-
</a>
3734
</div>

src/app/shared/log-in/methods/password/log-in-password.component.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { AuthMethod } from '../../../../core/auth/models/auth.method';
1515
import { AuthService } from '../../../../core/auth/auth.service';
1616
import { HardRedirectService } from '../../../../core/services/hard-redirect.service';
1717
import { CoreState } from '../../../../core/core-state.model';
18-
import { getForgotPasswordRoute, getRegisterRoute } from '../../../../app-routing-paths';
18+
import { getRegisterRoute } from '../../../../app-routing-paths';
1919
import { FeatureID } from '../../../../core/data/feature-authorization/feature-id';
2020
import { AuthorizationDataService } from '../../../../core/data/feature-authorization/authorization-data.service';
2121

@@ -121,10 +121,6 @@ export class LogInPasswordComponent implements OnInit {
121121
return getRegisterRoute();
122122
}
123123

124-
getForgotRoute() {
125-
return getForgotPasswordRoute();
126-
}
127-
128124
/**
129125
* Reset error or message.
130126
*/

src/themes/custom/lazy-theme.module.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ import { FullItemPageComponent } from './app/item-page/full/full-item-page.compo
6767
import { LoginPageComponent } from './app/login-page/login-page.component';
6868
import { LogoutPageComponent } from './app/logout-page/logout-page.component';
6969
import { CreateProfileComponent } from './app/register-page/create-profile/create-profile.component';
70-
import { ForgotEmailComponent } from './app/forgot-password/forgot-password-email/forgot-email.component';
71-
import { ForgotPasswordFormComponent } from './app/forgot-password/forgot-password-form/forgot-password-form.component';
7270
import { ProfilePageComponent } from './app/profile-page/profile-page.component';
7371
import { RegisterEmailComponent } from './app/register-page/register-email/register-email.component';
7472
import { MyDSpacePageComponent } from './app/my-dspace-page/my-dspace-page.component';
@@ -191,8 +189,6 @@ const DECLARATIONS = [
191189
LoginPageComponent,
192190
LogoutPageComponent,
193191
CreateProfileComponent,
194-
ForgotEmailComponent,
195-
ForgotPasswordFormComponent,
196192
ProfilePageComponent,
197193
RegisterEmailComponent,
198194
MyDSpacePageComponent,

0 commit comments

Comments
 (0)