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": "",