瀏覽代碼

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…
取消
儲存