1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-25 09:32:06 +01:00

auth guard auth blocked message

This commit is contained in:
Kyle Spearrin 2019-04-18 10:06:19 -04:00
parent 7ec8d3a3b5
commit bc43c68eb9

View File

@ -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;
}