Changeset

10281:f90abf142d53

mod_register_ibr: Add FORM_TYPE as required by XEP-0077.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 29 Sep 2019 15:05:17 +0200
parents 10280:6b8b255f1d10
children 10282:05ba04725a15
files plugins/mod_register_ibr.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_register_ibr.lua	Sun Sep 29 15:02:05 2019 +0200
+++ b/plugins/mod_register_ibr.lua	Sun Sep 29 15:05:17 2019 +0200
@@ -25,6 +25,7 @@
 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 @@
 	title = title;
 	instructions = instructions;
 
+	field_map.FORM_TYPE;
 	field_map.username;
 	field_map.password;
 };