fix: Fehlerbehebung bei HTTP-Anfragen durch Umleitung statt Login-Öffnen im canActivate
This commit is contained in:
parent
7f04bb16d3
commit
95d2832ef8
@ -23,7 +23,7 @@ export class AuthGuard implements CanActivate {
|
||||
const isAuthenticated = await this.authService.isAuthenticated();
|
||||
|
||||
if (!isAuthenticated) {
|
||||
this.openLogin();
|
||||
this.router.navigate(['/']);
|
||||
}
|
||||
|
||||
return isAuthenticated;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user