Software /
code /
prosody
Changeset
10703:6b63ba5b078a 0.11
mod_register_ibr: Add FORM_TYPE as required by XEP-0077 (fixes #1511)
Backport of f90abf142d53 from trunk
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 29 Sep 2019 15:05:17 +0200 |
parents | 10700:3fce670e0733 |
children | 10704:06307833684b 10707:c4b49939b471 |
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 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; };