aboutsummaryrefslogtreecommitdiffstats
path: root/spec/scansion
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-02 14:22:06 +0100
committerKim Alvefur <zash@zash.se>2019-11-02 14:22:06 +0100
commit534f64b5c8c2fa62405055ef0098d54dce0de275 (patch)
tree1d9b37e9f7cfa81ba1004615fdc2d35fa2ecf8b0 /spec/scansion
parentb480791da95848d3cd78c71d2ff7c98946bddfca (diff)
downloadprosody-534f64b5c8c2fa62405055ef0098d54dce0de275.tar.gz
prosody-534f64b5c8c2fa62405055ef0098d54dce0de275.zip
MUC: Make nickname field in registration form required
Prevents traceback from resourceprep(nil) muc#register_roomnick is also required in XEP-0045
Diffstat (limited to 'spec/scansion')
-rw-r--r--spec/scansion/muc_register.scs8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/scansion/muc_register.scs b/spec/scansion/muc_register.scs
index e1eaf4e0..a077cd76 100644
--- a/spec/scansion/muc_register.scs
+++ b/spec/scansion/muc_register.scs
@@ -100,7 +100,9 @@ Juliet receives:
<field type='hidden' var='FORM_TYPE'>
<value>http://jabber.org/protocol/muc#register</value>
</field>
- <field type='text-single' label='Nickname' var='muc#register_roomnick'/>
+ <field type='text-single' label='Nickname' var='muc#register_roomnick'>
+ <required/>
+ </field>
</x>
</query>
</iq>
@@ -339,7 +341,9 @@ Romeo receives:
<field type='hidden' var='FORM_TYPE'>
<value>http://jabber.org/protocol/muc#register</value>
</field>
- <field type='text-single' label='Nickname' var='muc#register_roomnick'/>
+ <field type='text-single' label='Nickname' var='muc#register_roomnick'>
+ <required/>
+ </field>
</x>
</query>
</iq>