ruwuma/src/r0/account/change_password.rs
Ragotzy.devin 1e3769a0f1
impl EndpointError for Error
Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
2020-03-22 03:08:08 +01:00

28 lines
764 B
Rust

//! [POST /_matrix/client/r0/account/password](https://matrix.org/docs/spec/client_server/r0.6.0#post-matrix-client-r0-account-password)
use ruma_api::ruma_api;
use super::AuthenticationData;
ruma_api! {
metadata {
description: "Change the password of the current user's account.",
method: POST,
name: "change_password",
path: "/_matrix/client/r0/account/password",
rate_limited: true,
requires_authentication: true,
}
request {
/// The new password for the account.
pub new_password: String,
/// Additional authentication information for the user-interactive authentication API.
pub auth: Option<AuthenticationData>,
}
response {}
error: crate::Error
}