Stop logged in users going to the login page

pull/1676/head
Jamie 7 years ago
parent 7f73b470af
commit c84e0c5ee8

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

Loading…
Cancel
Save