Updates tokens room name verification to be case insensitive.

Room names used inside prosody are all lower case, when verify with room name from token make sure we use the room name in lower case.
This commit is contained in:
damencho 2016-09-28 11:29:59 -05:00
parent 15f4288e4a
commit f3381b31ed
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ local function verify_user(session, stanza)
local token = session.auth_token;
local auth_room = session.jitsi_meet_room;
if room ~= auth_room and disableRoomNameConstraints ~= true then
if disableRoomNameConstraints ~= true and room ~= string.lower(auth_room) then
log("error", "Token %s not allowed to join: %s",
tostring(token), tostring(auth_room));
session.send(