client-api: Make authentication optional for change_password and

deactivate
This commit is contained in:
Kévin Commaille 2024-06-05 13:06:59 +02:00 committed by Kévin Commaille
parent 64b3838113
commit b7bc7d4873
3 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,8 @@ Improvements:
Bug fixes:
- Rename `avatar` to `avatar_url` when (De)serializing
- Make authentication with access token optional for the `change_password` and
`deactivate` endpoints.
Bug fixes:

View File

@ -17,7 +17,7 @@ pub mod v3 {
const METADATA: Metadata = metadata! {
method: POST,
rate_limited: true,
authentication: AccessToken,
authentication: AccessTokenOptional,
history: {
1.0 => "/_matrix/client/r0/account/password",
1.1 => "/_matrix/client/v3/account/password",

View File

@ -20,7 +20,7 @@ pub mod v3 {
const METADATA: Metadata = metadata! {
method: POST,
rate_limited: true,
authentication: AccessToken,
authentication: AccessTokenOptional,
history: {
1.0 => "/_matrix/client/r0/account/deactivate",
1.1 => "/_matrix/client/v3/account/deactivate",