fix: Updates token verification hooks priority. (#11105)
* fix: Updates token verification hooks priority. Set it as the highest priorities, if denying access, better do it earlier. * squash: Updates values.
This commit is contained in:
parent
f0f135ac7d
commit
14cad060cb
|
@ -78,7 +78,7 @@ module:hook("muc-room-pre-create", function(event)
|
|||
if not verify_user(origin, stanza) then
|
||||
return true; -- Returning any value other than nil will halt processing of the event
|
||||
end
|
||||
end);
|
||||
end, 99);
|
||||
|
||||
module:hook("muc-occupant-pre-join", function(event)
|
||||
local origin, room, stanza = event.origin, event.room, event.stanza;
|
||||
|
@ -86,7 +86,7 @@ module:hook("muc-occupant-pre-join", function(event)
|
|||
if not verify_user(origin, stanza) then
|
||||
return true; -- Returning any value other than nil will halt processing of the event
|
||||
end
|
||||
end);
|
||||
end, 99);
|
||||
|
||||
for event_name, method in pairs {
|
||||
-- Normal room interactions
|
||||
|
|
Loading…
Reference in New Issue