|
|
|
@ -6,7 +6,6 @@ import {
|
|
|
|
|
} from '@abp/ng.core';
|
|
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
|
import { AuthWrapperComponent } from './components/auth-wrapper/auth-wrapper.component';
|
|
|
|
|
import { ForgotPasswordComponent } from './components/forgot-password/forgot-password.component';
|
|
|
|
|
import { LoginComponent } from './components/login/login.component';
|
|
|
|
|
import { ManageProfileComponent } from './components/manage-profile/manage-profile.component';
|
|
|
|
@ -22,61 +21,49 @@ const routes: Routes = [
|
|
|
|
|
component: DynamicLayoutComponent,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
path: 'login',
|
|
|
|
|
component: ReplaceableRouteContainerComponent,
|
|
|
|
|
canActivate: [AuthenticationFlowGuard],
|
|
|
|
|
data: {
|
|
|
|
|
replaceableComponent: {
|
|
|
|
|
key: eAccountComponents.AuthWrapper,
|
|
|
|
|
defaultComponent: AuthWrapperComponent,
|
|
|
|
|
} as ReplaceableComponents.RouteData<AuthWrapperComponent>,
|
|
|
|
|
key: eAccountComponents.Login,
|
|
|
|
|
defaultComponent: LoginComponent,
|
|
|
|
|
} as ReplaceableComponents.RouteData<LoginComponent>,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'register',
|
|
|
|
|
component: ReplaceableRouteContainerComponent,
|
|
|
|
|
canActivate: [AuthenticationFlowGuard],
|
|
|
|
|
data: {
|
|
|
|
|
replaceableComponent: {
|
|
|
|
|
key: eAccountComponents.Register,
|
|
|
|
|
defaultComponent: RegisterComponent,
|
|
|
|
|
} as ReplaceableComponents.RouteData<RegisterComponent>,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'forgot-password',
|
|
|
|
|
component: ReplaceableRouteContainerComponent,
|
|
|
|
|
canActivate: [AuthenticationFlowGuard],
|
|
|
|
|
data: {
|
|
|
|
|
replaceableComponent: {
|
|
|
|
|
key: eAccountComponents.ForgotPassword,
|
|
|
|
|
defaultComponent: ForgotPasswordComponent,
|
|
|
|
|
} as ReplaceableComponents.RouteData<ForgotPasswordComponent>,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'reset-password',
|
|
|
|
|
component: ReplaceableRouteContainerComponent,
|
|
|
|
|
canActivate: [],
|
|
|
|
|
data: {
|
|
|
|
|
tenantBoxVisible: false,
|
|
|
|
|
replaceableComponent: {
|
|
|
|
|
key: eAccountComponents.ResetPassword,
|
|
|
|
|
defaultComponent: ResetPasswordComponent,
|
|
|
|
|
} as ReplaceableComponents.RouteData<ResetPasswordComponent>,
|
|
|
|
|
},
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'login',
|
|
|
|
|
component: ReplaceableRouteContainerComponent,
|
|
|
|
|
canActivate: [AuthenticationFlowGuard],
|
|
|
|
|
data: {
|
|
|
|
|
replaceableComponent: {
|
|
|
|
|
key: eAccountComponents.Login,
|
|
|
|
|
defaultComponent: LoginComponent,
|
|
|
|
|
} as ReplaceableComponents.RouteData<LoginComponent>,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'register',
|
|
|
|
|
component: ReplaceableRouteContainerComponent,
|
|
|
|
|
canActivate: [AuthenticationFlowGuard],
|
|
|
|
|
data: {
|
|
|
|
|
replaceableComponent: {
|
|
|
|
|
key: eAccountComponents.Register,
|
|
|
|
|
defaultComponent: RegisterComponent,
|
|
|
|
|
} as ReplaceableComponents.RouteData<RegisterComponent>,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'forgot-password',
|
|
|
|
|
component: ReplaceableRouteContainerComponent,
|
|
|
|
|
canActivate: [AuthenticationFlowGuard],
|
|
|
|
|
data: {
|
|
|
|
|
replaceableComponent: {
|
|
|
|
|
key: eAccountComponents.ForgotPassword,
|
|
|
|
|
defaultComponent: ForgotPasswordComponent,
|
|
|
|
|
} as ReplaceableComponents.RouteData<ForgotPasswordComponent>,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'reset-password',
|
|
|
|
|
component: ReplaceableRouteContainerComponent,
|
|
|
|
|
canActivate: [AuthenticationFlowGuard],
|
|
|
|
|
data: {
|
|
|
|
|
tenantBoxVisible: false,
|
|
|
|
|
replaceableComponent: {
|
|
|
|
|
key: eAccountComponents.ResetPassword,
|
|
|
|
|
defaultComponent: ResetPasswordComponent,
|
|
|
|
|
} as ReplaceableComponents.RouteData<ResetPasswordComponent>,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'manage',
|
|
|
|
|