diff options
author | Kim Alvefur <zash@zash.se> | 2019-11-02 14:22:06 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-11-02 14:22:06 +0100 |
commit | 534f64b5c8c2fa62405055ef0098d54dce0de275 (patch) | |
tree | 1d9b37e9f7cfa81ba1004615fdc2d35fa2ecf8b0 /plugins | |
parent | b480791da95848d3cd78c71d2ff7c98946bddfca (diff) | |
download | prosody-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 'plugins')
-rw-r--r-- | plugins/muc/register.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/register.lib.lua b/plugins/muc/register.lib.lua index 4ae393c7..bf8cd877 100644 --- a/plugins/muc/register.lib.lua +++ b/plugins/muc/register.lib.lua @@ -53,7 +53,7 @@ end); local registration_form = dataforms.new { { name = "FORM_TYPE", type = "hidden", value = "http://jabber.org/protocol/muc#register" }, - { name = "muc#register_roomnick", type = "text-single", label = "Nickname"}, + { name = "muc#register_roomnick", type = "text-single", required = true, label = "Nickname"}, }; local function enforce_nick_policy(event) |