From 175d488d6ccf62617170107c6d38f90f28e070c2 Mon Sep 17 00:00:00 2001 From: Timshel Date: Tue, 28 Jan 2025 21:51:48 +0100 Subject: [PATCH] Log password change event on SSO account creation --- src/api/core/accounts.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api/core/accounts.rs b/src/api/core/accounts.rs index 5351e7b1..dbaccdde 100644 --- a/src/api/core/accounts.rs +++ b/src/api/core/accounts.rs @@ -303,7 +303,11 @@ async fn post_set_password(data: Json, headers: Headers, mut co Membership::accept_user_invitations(&user.uuid, &mut conn).await?; } + log_user_event(EventType::UserChangedPassword as i32, &user.uuid, headers.device.atype, &headers.ip.ip, &mut conn) + .await; + user.save(&mut conn).await?; + Ok(Json(json!({ "Object": "set-password", "CaptchaBypassToken": "",