new event log for 2fa recovery (#20055)

This commit is contained in:
Kyle Spearrin 2026-04-08 11:31:45 -04:00 committed by GitHub
parent 405c30008a
commit 92b04c24fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 18 additions and 0 deletions

View File

@ -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(

View File

@ -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": {

View File

@ -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,

View File

@ -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,