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:
Дамян Минков 2022-03-10 14:28:58 -06:00 committed by GitHub
parent f0f135ac7d
commit 14cad060cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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