1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2025-01-31 10:08:56 +01:00

Log password change event on SSO account creation

Dieser Commit ist enthalten in:
Timshel 2025-01-28 21:51:48 +01:00
Ursprung 246072c198
Commit 175d488d6c

Datei anzeigen

@ -303,7 +303,11 @@ async fn post_set_password(data: Json<SetPasswordData>, headers: Headers, mut co
Membership::accept_user_invitations(&user.uuid, &mut conn).await?; 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?; user.save(&mut conn).await?;
Ok(Json(json!({ Ok(Json(json!({
"Object": "set-password", "Object": "set-password",
"CaptchaBypassToken": "", "CaptchaBypassToken": "",