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:
@@ -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) {
|
||||
|
||||
@@ -1697,7 +1697,7 @@ const safeProviders: SafeProvider[] = [
|
||||
safeProvider({
|
||||
provide: LogoutService,
|
||||
useClass: DefaultLogoutService,
|
||||
deps: [MessagingServiceAbstraction],
|
||||
deps: [MessagingServiceAbstraction, LogService],
|
||||
}),
|
||||
safeProvider({
|
||||
provide: DocumentLangSetter,
|
||||
|
||||
Reference in New Issue
Block a user