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

Fix broken claims comparison

j8
Sam Whited пре 8 година
родитељ
комит
7fb18d1cb3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      prosody-plugins/mod_auth_token.lua

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

154
 		else
154
 		else
155
 			claims, msg = token_util.verify_token(token, appId, appSecret, disableRoomNameConstraints);
155
 			claims, msg = token_util.verify_token(token, appId, appSecret, disableRoomNameConstraints);
156
 		end
156
 		end
157
-		if claims ~= true then
157
+		if claims ~= nil then
158
 			-- Binds room name to the session which is later checked on MUC join
158
 			-- Binds room name to the session which is later checked on MUC join
159
 			session.jitsi_meet_room = claims["room"];
159
 			session.jitsi_meet_room = claims["room"];
160
 			return true;
160
 			return true;

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