Browse Source

Merge pull request #6083 from abpframework/feat/6082

feat: enable redirecting to mvc on manage-profile route
pull/6099/head
Bunyamin Coskuner 6 years ago
committed by GitHub
parent
commit
e7f3271c08
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      npm/ng-packs/packages/account/src/lib/account-routing.module.ts

3
npm/ng-packs/packages/account/src/lib/account-routing.module.ts

@ -11,6 +11,7 @@ import { ManageProfileComponent } from './components/manage-profile/manage-profi
import { RegisterComponent } from './components/register/register.component';
import { eAccountComponents } from './enums/components';
import { AuthenticationFlowGuard } from './guards/authentication-flow.guard';
import { ManageProfileGuard } from './guards/manage-profile.guard';
const routes: Routes = [
{ path: '', pathMatch: 'full', redirectTo: 'login' },
@ -43,7 +44,7 @@ const routes: Routes = [
{
path: 'manage-profile',
component: ReplaceableRouteContainerComponent,
canActivate: [AuthGuard],
canActivate: [AuthGuard, ManageProfileGuard],
data: {
replaceableComponent: {
key: eAccountComponents.ManageProfile,

Loading…
Cancel
Save