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:
Ursprung
246072c198
Commit
175d488d6c
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
|
@ -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": "",
|
||||||
|
|
Laden …
Tabelle hinzufügen
In neuem Issue referenzieren