mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-11-05 05:08:36 +02:00
add and use new event types (#5482)
* add additional event_types * use correct event_type when leaving an org * use correct event type when deleting a user * also correctly log auth requests * add correct membership info to event log
This commit is contained in:
1 parent
c0ebe0d982
commit
a3dccee243
5 files changed
+48
-6
No files matched your search
+1
-1
@@ -403,7 +403,7 @@ async fn delete_user(user_id: UserId, token: AdminToken, mut conn: DbConn) -> Em
|
||||
|
||||
for membership in memberships {
|
||||
log_event(
|
||||
EventType::OrganizationUserRemoved as i32,
|
||||
EventType::OrganizationUserDeleted as i32,
|
||||
&membership.uuid,
|
||||
&membership.org_uuid,
|
||||
&ACTING_ADMIN_USER.into(),
|
||||
|
||||
Reference in new issue
Block a user