From 0805b9e99e4b7108f2718861b6f812e7a159d77a Mon Sep 17 00:00:00 2001 From: damencho Date: Thu, 4 May 2017 14:19:46 -0500 Subject: [PATCH] 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. --- resources/prosody-plugins/token/util.lib.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/prosody-plugins/token/util.lib.lua b/resources/prosody-plugins/token/util.lib.lua index 9b486897b..937bba62a 100644 --- a/resources/prosody-plugins/token/util.lib.lua +++ b/resources/prosody-plugins/token/util.lib.lua @@ -36,7 +36,6 @@ function Util.new(module) self.appSecret = module:get_option_string("app_secret"); self.asapKeyServer = module:get_option_string("asap_key_server"); self.allowEmptyToken = module:get_option_boolean("allow_empty_token"); - self.disableRoomNameConstraints = module:get_option_boolean("disable_room_name_constraints"); if self.allowEmptyToken == true then module:log("warn", "WARNING - empty tokens allowed"); @@ -136,7 +135,7 @@ function Util:verify_token(token) end local roomClaim = claims["room"]; - if roomClaim == nil and self.disableRoomNameConstraints ~= true then + if roomClaim == nil then return nil, "'room' claim is missing"; end @@ -214,7 +213,7 @@ function Util:verify_room(session, room_address) end local auth_room = session.jitsi_meet_room; - if self.disableRoomNameConstraints ~= true and room ~= string.lower(auth_room) then + if room ~= string.lower(auth_room) then return false; end