1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 21:50:15 +00:00

Added log message on every logout with a reason.

This commit is contained in:
Todd Martin
2025-11-22 19:04:44 -05:00
parent 5b9e8432d8
commit f69602850f
13 changed files with 38 additions and 49 deletions

View File

@@ -271,7 +271,7 @@ export class SetInitialPasswordComponent implements OnInit {
this.showSuccessToastByUserType();
await this.logoutService.logout(this.userId);
await this.logoutService.logout(this.userId, "setInitialPassword");
// navigate to root so redirect guard can properly route next active user or null user to correct page
await this.router.navigate(["/"]);
} catch (e) {

View File

@@ -1697,7 +1697,7 @@ const safeProviders: SafeProvider[] = [
safeProvider({
provide: LogoutService,
useClass: DefaultLogoutService,
deps: [MessagingServiceAbstraction],
deps: [MessagingServiceAbstraction, LogService],
}),
safeProvider({
provide: DocumentLangSetter,