From f47bf2e142b0b22460558e23720f5aed8deb982c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 10 Oct 2017 10:18:25 +0200 Subject: Client: check user is logged in for some pages --- client/src/app/account/account-routing.module.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/src/app/account') diff --git a/client/src/app/account/account-routing.module.ts b/client/src/app/account/account-routing.module.ts index 029d97788..74d9aa03e 100644 --- a/client/src/app/account/account-routing.module.ts +++ b/client/src/app/account/account-routing.module.ts @@ -3,13 +3,14 @@ import { RouterModule, Routes } from '@angular/router' import { MetaGuard } from '@ngx-meta/core' +import { LoginGuard } from '../core' import { AccountComponent } from './account.component' const accountRoutes: Routes = [ { path: 'account', component: AccountComponent, - canActivate: [ MetaGuard ], + canActivate: [ MetaGuard, LoginGuard ], data: { meta: { title: 'My account' -- cgit v1.2.3