Software / code / prosody
Diff
plugins/mod_register_ibr.lua @ 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 |
| parent | 9608:3e44b8dc2cc0 |
| child | 10286:23b26a414d71 |
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; };