Stop logged in users going to the login page

This commit is contained in:
Jamie 2017-11-01 15:51:24 +00:00
commit c84e0c5ee8

View file

@ -54,6 +54,10 @@ export class LoginComponent implements OnInit {
this.router.navigate(["Wizard"]);
}
});
if(authService.loggedIn()) {
this.router.navigate(["search"]);
}
}
public ngOnInit() {