On 17.06.2017 09:44, Guus der Kinderen wrote:
> XEP-0045 <https://xmpp.org/extensions/xep-0045.html> defines two
> `room_config` fields that relate to the password protection of a room: 
> 
>   <field
>        var='muc#roomconfig_passwordprotectedroom'
>        type='boolean'
>        label='Whether a Password is Required to Enter'/>
>   <field
>        var='muc#roomconfig_roomsecret'
>        type='text-single'
>        label='The Room Password'/>
> 
> Arguably, setting the room password implies that a user wants the the
> room to be password protected.

I always think of it as like this: The roomsecret is the password used
when passwordprotectedroom is set to true.

> What is the purpose of having two fields?

How would you remove the password protection if there is only one field?
By setting roomsecret to the empty string? Doesn't appear like a clean
approach to me.

> Should setting the latter
> imply that server-sided, the former is switched to 'true'?

I don't think so. But even if this is not true, the XEP should probably
specify what's (not) about to happen when roomsecret is set. I think you
are not the only one who wonders about this.

- Florian

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Standards mailing list
Info: https://mail.jabber.org/mailman/listinfo/standards
Unsubscribe: [email protected]
_______________________________________________

Reply via email to