瀏覽代碼

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
 
60
 
61
 	local token = session.auth_token;
61
 	local token = session.auth_token;
62
 	local auth_room = session.jitsi_meet_room;
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
 		log("error", "Token %s not allowed to join: %s",
64
 		log("error", "Token %s not allowed to join: %s",
65
 			tostring(token), tostring(auth_room));
65
 			tostring(token), tostring(auth_room));
66
 		session.send(
66
 		session.send(

Loading…
取消
儲存