浏览代码

Removes disableRoomNameConstraints option.

This option is useless, as if we do not need to verify room name, we just disable the mod_token_verification module.
j8
damencho 8 年前
父节点
当前提交
0805b9e99e
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2
    3
      resources/prosody-plugins/token/util.lib.lua

+ 2
- 3
resources/prosody-plugins/token/util.lib.lua 查看文件

36
     self.appSecret = module:get_option_string("app_secret");
36
     self.appSecret = module:get_option_string("app_secret");
37
     self.asapKeyServer = module:get_option_string("asap_key_server");
37
     self.asapKeyServer = module:get_option_string("asap_key_server");
38
     self.allowEmptyToken = module:get_option_boolean("allow_empty_token");
38
     self.allowEmptyToken = module:get_option_boolean("allow_empty_token");
39
-    self.disableRoomNameConstraints = module:get_option_boolean("disable_room_name_constraints");
40
 
39
 
41
     if self.allowEmptyToken == true then
40
     if self.allowEmptyToken == true then
42
         module:log("warn", "WARNING - empty tokens allowed");
41
         module:log("warn", "WARNING - empty tokens allowed");
136
     end
135
     end
137
 
136
 
138
     local roomClaim = claims["room"];
137
     local roomClaim = claims["room"];
139
-    if roomClaim == nil and self.disableRoomNameConstraints ~= true then
138
+    if roomClaim == nil then
140
         return nil, "'room' claim is missing";
139
         return nil, "'room' claim is missing";
141
     end
140
     end
142
 
141
 
214
     end
213
     end
215
 
214
 
216
     local auth_room = session.jitsi_meet_room;
215
     local auth_room = session.jitsi_meet_room;
217
-    if self.disableRoomNameConstraints ~= true and room ~= string.lower(auth_room) then
216
+    if room ~= string.lower(auth_room) then
218
         return false;
217
         return false;
219
     end
218
     end
220
 
219
 

正在加载...
取消
保存