# HG changeset patch # User Emmanuel Gil Peyrot # Date 1569762317 -7200 # Node ID 6b63ba5b078a1013eb4a51a3ede8a48d9cff39fa # Parent 3fce670e073300889a08c354e26287d6d4d2a111 mod_register_ibr: Add FORM_TYPE as required by XEP-0077 (fixes #1511) Backport of f90abf142d53 from trunk diff -r 3fce670e0733 -r 6b63ba5b078a plugins/mod_register_ibr.lua --- a/plugins/mod_register_ibr.lua Sun Mar 22 21:05:59 2020 +0100 +++ 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; };