comparison 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
comparison
equal deleted inserted replaced
2933:8858cef9ed27 2934:5c60df8b1a07
26 bosh_service_url = module:http_url("bosh","/http-bind"); 26 bosh_service_url = module:http_url("bosh","/http-bind");
27 websocket_url = has_ws and module:http_url("websocket","xmpp-websocket"):gsub("^http", "ws") or nil; 27 websocket_url = has_ws and module:http_url("websocket","xmpp-websocket"):gsub("^http", "ws") or nil;
28 authentication = module:get_option_string("authentication") == "anonymous" and "anonymous" or "login"; 28 authentication = module:get_option_string("authentication") == "anonymous" and "anonymous" or "login";
29 jid = module.host; 29 jid = module.host;
30 default_domain = module.host; 30 default_domain = module.host;
31 domain_placeholder = module.host;
32 allow_registration = module:get_option_boolean("allow_registration", false);
31 }; 33 };
32 34
33 local view_mode_css = "converse"; 35 local view_mode_css = "converse";
34 if type(more_options) == "table" then 36 if type(more_options) == "table" then
35 for k,v in pairs(more_options) do 37 for k,v in pairs(more_options) do