added better auth guard to admin page
This commit is contained in:
1 parent
f7300f3fb9
commit
49ff565fc0
6 files changed
+30
-14
No files matched your search
@@ -32,6 +32,10 @@ export class LoginComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
this.titleService.setTitle('Login | itzMiney')
|
||||
this.isNarrow = this.deviceService.isNarrow;
|
||||
|
||||
if (this.authService.token) {
|
||||
void this.router.navigate(['/admin']);
|
||||
}
|
||||
}
|
||||
|
||||
onLogin() {
|
||||
|
||||
Reference in new issue
Block a user