浏览代码

Fix broken claims comparison

j8
Sam Whited 9 年前
父节点
当前提交
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;

正在加载...
取消
保存