mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
32 lines
972 B
TypeScript
32 lines
972 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule } from '@angular/router';
|
|
import { ItemPageResolver } from '../item-page/item-page.resolver';
|
|
import { ThemedForgotPasswordFormComponent } from './forgot-password-form/themed-forgot-password-form.component';
|
|
import { ThemedForgotEmailComponent } from './forgot-password-email/themed-forgot-email.component';
|
|
import { RegistrationGuard } from '../register-page/registration.guard';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forChild([
|
|
{
|
|
path: '',
|
|
component: ThemedForgotEmailComponent,
|
|
data: {title: 'forgot-password.title'},
|
|
},
|
|
{
|
|
path: ':token',
|
|
component: ThemedForgotPasswordFormComponent,
|
|
canActivate: [ RegistrationGuard ],
|
|
}
|
|
])
|
|
],
|
|
providers: [
|
|
ItemPageResolver,
|
|
]
|
|
})
|
|
/**
|
|
* This module defines the routing to the components related to the forgot password components.
|
|
*/
|
|
export class ForgotPasswordRoutingModule {
|
|
}
|