added better auth guard to admin page

This commit is contained in:
itzMiney committed 2026-03-20 17:37:05 +01:00
1 parent f7300f3fb9
commit 49ff565fc0
6 files changed
+30 -14

No files matched your search

+4
View File
@@ -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() {