rsanchez
2017-03-16 abaf75fb294a796fc6c99904ab3b47a2367a3792
securis/src/main/webapp/src/app/menu.component.ts
....@@ -22,10 +22,16 @@
2222 this.userService.isLoggedIn().subscribe(authOk => {
2323 let isLoggedIn = authOk.valueOf();
2424 if (!isLoggedIn) {
25
- this.router.navigateByUrl('nomenu/login');
25
+ this.router.navigateByUrl('public/login');
26
+ } else {
27
+ this.router.navigate(['packs']);
2628 }
2729 } ,
28
- err => /* Show message */ this.router.navigateByUrl('nomenu/login'));
30
+ err => /* Show message */ this.router.navigateByUrl('public/login'));
31
+ }
32
+
33
+ public logout() {
34
+ this.userService.logout();
2935 }
3036
3137 public closeMenu() {