mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-04-01 02:42:49 -05:00
Log password change event on SSO account creation
This commit is contained in:
parent
246072c198
commit
175d488d6c
1 changed files with 4 additions and 0 deletions
|
@ -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?;
|
||||
}
|
||||
|
||||
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": "",
|
||||
|
|
Loading…
Add table
Reference in a new issue