mirror of
https://github.com/bitwarden/clients.git
synced 2026-07-07 21:10:55 +08:00
new event log for 2fa recovery (#20055)
This commit is contained in:
parent
405c30008a
commit
92b04c24fe
@ -299,6 +299,13 @@ export class EventService {
|
||||
this.getShortId(ev.organizationUserId),
|
||||
);
|
||||
break;
|
||||
case EventType.OrganizationUser_AdminResetTwoFactor:
|
||||
msg = this.i18nService.t("eventAdminResetTwoFactor", this.formatOrgUserId(ev));
|
||||
humanReadableMsg = this.i18nService.t(
|
||||
"eventAdminResetTwoFactor",
|
||||
this.getShortId(ev.organizationUserId),
|
||||
);
|
||||
break;
|
||||
case EventType.OrganizationUser_ResetSsoLink:
|
||||
msg = this.i18nService.t("eventResetSsoLink", this.formatOrgUserId(ev));
|
||||
humanReadableMsg = this.i18nService.t(
|
||||
|
||||
@ -6619,6 +6619,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"eventAdminResetTwoFactor": {
|
||||
"message": "Two-step login reset for user $ID$.",
|
||||
"placeholders": {
|
||||
"id": {
|
||||
"content": "$1",
|
||||
"example": "John Smith"
|
||||
}
|
||||
}
|
||||
},
|
||||
"eventResetSsoLink": {
|
||||
"message": "Reset SSO link for user $ID$",
|
||||
"placeholders": {
|
||||
|
||||
@ -68,6 +68,7 @@ export const EventCategoryEventTypes: Record<EventCategory, EventType[]> = {
|
||||
EventType.OrganizationUser_ResetPassword_Enroll,
|
||||
EventType.OrganizationUser_ResetPassword_Withdraw,
|
||||
EventType.OrganizationUser_AdminResetPassword,
|
||||
EventType.OrganizationUser_AdminResetTwoFactor,
|
||||
EventType.OrganizationUser_ResetSsoLink,
|
||||
EventType.OrganizationUser_FirstSsoLogin,
|
||||
EventType.OrganizationUser_Revoked,
|
||||
|
||||
@ -62,6 +62,7 @@ export enum EventType {
|
||||
OrganizationUser_Left = 1516,
|
||||
OrganizationUser_AutomaticallyConfirmed = 1517,
|
||||
OrganizationUser_SelfRevoked = 1518,
|
||||
OrganizationUser_AdminResetTwoFactor = 1519,
|
||||
|
||||
Organization_Updated = 1600,
|
||||
Organization_PurgedVault = 1601,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user