Преглед изворни кода

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.
master
damencho пре 8 година
родитељ
комит
f3381b31ed
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      prosody-plugins/mod_token_verification.lua

+ 1
- 1
prosody-plugins/mod_token_verification.lua Прегледај датотеку

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

Loading…
Откажи
Сачувај