Added better routing and auto logout on login

Note that this is fully working auth login now
This commit is contained in:
piratefinn 2017-06-08 16:05:01 +01:00
parent c7810de2b6
commit 845b166364
5 changed files with 27 additions and 9 deletions

View file

@ -15,7 +15,7 @@ export class AuthGuard implements CanActivate {
// not logged in so redirect to login page with the return url
console.log('no session key found')
this.router.navigate(['/login'], { queryParams: { returnUrl: state.url }});
this.router.navigate(['/pages/login'], { queryParams: { returnUrl: state.url }});
return false;
}
}