mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 06:43:35 +00:00
auth guard auth blocked message
This commit is contained in:
@@ -18,7 +18,7 @@ export class AuthGuardService implements CanActivate {
|
|||||||
async canActivate(route: ActivatedRouteSnapshot, routerState: RouterStateSnapshot) {
|
async canActivate(route: ActivatedRouteSnapshot, routerState: RouterStateSnapshot) {
|
||||||
const isAuthed = await this.userService.isAuthenticated();
|
const isAuthed = await this.userService.isAuthenticated();
|
||||||
if (!isAuthed) {
|
if (!isAuthed) {
|
||||||
this.messagingService.send('logout');
|
this.messagingService.send('authBlocked');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user