diff mod_conversejs/mod_conversejs.lua @ 2934:5c60df8b1a07

mod_conversejs: Pass information about if and how of account registration
author Kim Alvefur <zash@zash.se>
date Fri, 16 Mar 2018 20:35:14 +0100
parents 8858cef9ed27
children ba6466fa6823
line wrap: on
line diff
--- a/mod_conversejs/mod_conversejs.lua	Fri Mar 16 20:32:35 2018 +0100
+++ b/mod_conversejs/mod_conversejs.lua	Fri Mar 16 20:35:14 2018 +0100
@@ -28,6 +28,8 @@
 				authentication = module:get_option_string("authentication") == "anonymous" and "anonymous" or "login";
 				jid = module.host;
 				default_domain = module.host;
+				domain_placeholder = module.host;
+				allow_registration = module:get_option_boolean("allow_registration", false);
 			};
 
 			local view_mode_css = "converse";