Stores the room name from the bosh url into the session.

This commit is contained in:
damencho 2017-07-14 22:08:41 -05:00
parent 2b1e8cdeff
commit 599d84a889
1 changed files with 6 additions and 2 deletions

View File

@ -23,8 +23,12 @@ module:hook("bosh-session", function(event)
local query = request.url.query;
if query ~= nil then
session.auth_token = query and formdecode(query).token or nil;
end
local params = formdecode(query);
session.auth_token = query and params.token or nil;
-- The room name from the bosh query
session.jitsi_bosh_query_room = params.room;
end
end);
function provider.test_password(username, password)