Clarify whether password is optional in registration endpoint.

This commit is contained in:
Isaiah Inuwa 2020-04-06 15:09:03 -05:00 committed by Jonas Platte
parent 9198a549e7
commit aeb4e237b7
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -19,8 +19,8 @@ ruma_api! {
request {
/// The desired password for the account.
///
/// Should only be empty for guest accounts.
// TODO: the spec says nothing about when it is actually required.
/// May be empty for accounts that should not be able to log in again
/// with a password, e.g., for guest or application service accounts.
#[serde(skip_serializing_if = "Option::is_none")]
pub password: Option<String>,
/// local part of the desired Matrix ID.