Browse Source

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

master
damencho 8 years ago
parent
commit
599d84a889
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      resources/prosody-plugins/mod_auth_token.lua

+ 6
- 2
resources/prosody-plugins/mod_auth_token.lua View File

23
 	local query = request.url.query;
23
 	local query = request.url.query;
24
 
24
 
25
 	if query ~= nil then
25
 	if query ~= nil then
26
-		session.auth_token = query and formdecode(query).token or nil;
27
-	end
26
+        local params = formdecode(query);
27
+        session.auth_token = query and params.token or nil;
28
+
29
+        -- The room name from the bosh query
30
+        session.jitsi_bosh_query_room = params.room;
31
+    end
28
 end);
32
 end);
29
 
33
 
30
 function provider.test_password(username, password)
34
 function provider.test_password(username, password)

Loading…
Cancel
Save