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.
This commit is contained in:
parent
82b27b45fe
commit
0805b9e99e
|
@ -36,7 +36,6 @@ function Util.new(module)
|
||||||
self.appSecret = module:get_option_string("app_secret");
|
self.appSecret = module:get_option_string("app_secret");
|
||||||
self.asapKeyServer = module:get_option_string("asap_key_server");
|
self.asapKeyServer = module:get_option_string("asap_key_server");
|
||||||
self.allowEmptyToken = module:get_option_boolean("allow_empty_token");
|
self.allowEmptyToken = module:get_option_boolean("allow_empty_token");
|
||||||
self.disableRoomNameConstraints = module:get_option_boolean("disable_room_name_constraints");
|
|
||||||
|
|
||||||
if self.allowEmptyToken == true then
|
if self.allowEmptyToken == true then
|
||||||
module:log("warn", "WARNING - empty tokens allowed");
|
module:log("warn", "WARNING - empty tokens allowed");
|
||||||
|
@ -136,7 +135,7 @@ function Util:verify_token(token)
|
||||||
end
|
end
|
||||||
|
|
||||||
local roomClaim = claims["room"];
|
local roomClaim = claims["room"];
|
||||||
if roomClaim == nil and self.disableRoomNameConstraints ~= true then
|
if roomClaim == nil then
|
||||||
return nil, "'room' claim is missing";
|
return nil, "'room' claim is missing";
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -214,7 +213,7 @@ function Util:verify_room(session, room_address)
|
||||||
end
|
end
|
||||||
|
|
||||||
local auth_room = session.jitsi_meet_room;
|
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;
|
return false;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue