auth guard auth blocked message
This commit is contained in:
parent
7ec8d3a3b5
commit
bc43c68eb9
|
@ -18,7 +18,7 @@ export class AuthGuardService implements CanActivate {
|
|||
async canActivate(route: ActivatedRouteSnapshot, routerState: RouterStateSnapshot) {
|
||||
const isAuthed = await this.userService.isAuthenticated();
|
||||
if (!isAuthed) {
|
||||
this.messagingService.send('logout');
|
||||
this.messagingService.send('authBlocked');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue