Add logout_devices parameter to change_password::Request

This commit is contained in:
Bernardo Yusti 2020-07-20 16:40:23 -07:00 committed by GitHub
parent c2ea1493cb
commit c74b737fa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -39,6 +39,7 @@ Improvements:
* Add a constructor for request structs of the followign endpoints
* `r0::room::create_room`
* `r0::message::get_message_events`
* Add `logout_devices` field to `r0::account::change_password`
Deprecations:

View File

@ -18,6 +18,12 @@ ruma_api! {
/// The new password for the account.
pub new_password: String,
/// True to revoke the user's other access tokens, and their associated devices if the request succeeds.
/// Defaults to true.
/// When false, the server can still take advantage of the soft logout method for the user's remaining devices.
#[serde(default = "ruma_serde::default_true", skip_serializing_if = "ruma_serde::is_true")]
pub logout_devices: bool,
/// Additional authentication information for the user-interactive authentication API.
pub auth: Option<AuthData>,
}