Added better routing and auto logout on login
Note that this is fully working auth login now
This commit is contained in:
parent
c7810de2b6
commit
845b166364
5 changed files with 27 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
}
|
Reference in a new issue