|
@@ -379,7 +379,7 @@ function Util:verify_room(session, room_address)
|
379
|
379
|
end
|
380
|
380
|
|
381
|
381
|
return room_address_to_verify == jid.join(
|
382
|
|
- "["..subdomain_to_check.."]"..string.lower(room_to_check), self.muc_domain);
|
|
382
|
+ "["..string.lower(subdomain_to_check).."]"..string.lower(room_to_check), self.muc_domain);
|
383
|
383
|
else
|
384
|
384
|
if auth_domain == '*' then
|
385
|
385
|
-- check for wildcard in JWT claim, allow access if found
|
|
@@ -391,7 +391,7 @@ function Util:verify_room(session, room_address)
|
391
|
391
|
-- we do not have a domain part (multidomain is not enabled)
|
392
|
392
|
-- verify with info from the token
|
393
|
393
|
return room_address_to_verify == jid.join(
|
394
|
|
- string.lower(room_to_check), subdomain_to_check);
|
|
394
|
+ string.lower(room_to_check), string.lower(subdomain_to_check));
|
395
|
395
|
end
|
396
|
396
|
end
|
397
|
397
|
|