aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2019-09-29 15:05:17 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2019-09-29 15:05:17 +0200
commit2c3bd063b9f6b729b2b1592f964444aecc10de5b (patch)
tree3a06a04e85a04e3bb193b04cdaa58b429ac09da1 /plugins
parent6e360554ffaa391f23a9e0bb93adde3f1bd32020 (diff)
downloadprosody-2c3bd063b9f6b729b2b1592f964444aecc10de5b.tar.gz
prosody-2c3bd063b9f6b729b2b1592f964444aecc10de5b.zip
mod_register_ibr: Add FORM_TYPE as required by XEP-0077.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_register_ibr.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_register_ibr.lua b/plugins/mod_register_ibr.lua
index bbe7581d..e04e6ecd 100644
--- a/plugins/mod_register_ibr.lua
+++ b/plugins/mod_register_ibr.lua
@@ -25,6 +25,7 @@ end);
local account_details = module:open_store("account_details");
local field_map = {
+ FORM_TYPE = { name = "FORM_TYPE", type = "hidden", value = "jabber:iq:register" };
username = { name = "username", type = "text-single", label = "Username", required = true };
password = { name = "password", type = "text-private", label = "Password", required = true };
nick = { name = "nick", type = "text-single", label = "Nickname" };
@@ -50,6 +51,7 @@ local registration_form = dataform_new{
title = title;
instructions = instructions;
+ field_map.FORM_TYPE;
field_map.username;
field_map.password;
};