mod_conversejs: Pass host jid (needed for anonymous auth)

Tue, 18 Apr 2017 04:12:51 +0200

author
Kim Alvefur <zash@zash.se>
date
Tue, 18 Apr 2017 04:12:51 +0200
changeset 2694
38c66b58b470
parent 2693
04ae5b45e6c7
child 2695
8b21f13b08c5

mod_conversejs: Pass host jid (needed for anonymous auth)

mod_conversejs/mod_conversejs.lua file | annotate | diff | comparison | revisions
--- a/mod_conversejs/mod_conversejs.lua	Sun Apr 16 01:02:52 2017 +0200
+++ b/mod_conversejs/mod_conversejs.lua	Tue Apr 18 04:12:51 2017 +0200
@@ -26,6 +26,7 @@
 				bosh_service_url = module:http_url("bosh","/http-bind");
 				websocket_url = has_ws and module:http_url("websocket","xmpp-websocket"):gsub("^http", "ws") or nil;
 				authentication = module:get_option_string("authentication") == "anonymous" and "anonymous" or "login";
+				jid = module.host;
 			}));
 		end;
 	}

mercurial