mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-11 10:10:25 +01:00
Send loggedOut/locked events on logout/lock event
This commit is contained in:
parent
ffb99efebb
commit
293f2d6131
@ -212,9 +212,11 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||||||
this.loading = message.userId == null || message.userId === this.activeUserId;
|
this.loading = message.userId == null || message.userId === this.activeUserId;
|
||||||
await this.logOut(message.logoutReason, message.userId);
|
await this.logOut(message.logoutReason, message.userId);
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
this.messagingService.send("loggedOut");
|
||||||
break;
|
break;
|
||||||
case "lockVault":
|
case "lockVault":
|
||||||
await this.vaultTimeoutService.lock(message.userId);
|
await this.vaultTimeoutService.lock(message.userId);
|
||||||
|
this.messagingService.send("locked", { userId: message.userId });
|
||||||
break;
|
break;
|
||||||
case "lockAllVaults": {
|
case "lockAllVaults": {
|
||||||
const currentUser = await firstValueFrom(
|
const currentUser = await firstValueFrom(
|
||||||
@ -229,6 +231,7 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
await this.vaultTimeoutService.lock(account);
|
await this.vaultTimeoutService.lock(account);
|
||||||
}
|
}
|
||||||
|
this.messagingService.send("locked");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "locked":
|
case "locked":
|
||||||
|
Loading…
Reference in New Issue
Block a user