From aeb4e237b7f13a068a92929fdb5c5adac4f346e1 Mon Sep 17 00:00:00 2001 From: Isaiah Inuwa Date: Mon, 6 Apr 2020 15:09:03 -0500 Subject: [PATCH] Clarify whether password is optional in registration endpoint. --- src/r0/account/register.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r0/account/register.rs b/src/r0/account/register.rs index 9644624b..9b11340d 100644 --- a/src/r0/account/register.rs +++ b/src/r0/account/register.rs @@ -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, /// local part of the desired Matrix ID.