use crate::client::IronflowClient;
use crate::error::Error;
impl IronflowClient {
pub async fn change_password(
&self,
old_password: &str,
new_password: &str,
) -> Result<(), Error> {
let body = serde_json::json!({
"old_password": old_password,
"new_password": new_password,
});
self.send_no_content(self.patch("/api/v1/auth/password").json(&body))
.await
}
}