mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
mod_dialback: Use renamed API for hooking non-stanza tags
This commit is contained in:
parent
c1157eb0ae
commit
c1362a6093
1 changed files with 2 additions and 2 deletions
|
@ -189,7 +189,7 @@ module:hook("stanza/jabber:server:dialback:result", function(event)
|
||||||
end
|
end
|
||||||
end);
|
end);
|
||||||
|
|
||||||
module:hook_stanza("urn:ietf:params:xml:ns:xmpp-sasl", "failure", function (origin, stanza)
|
module:hook_tag("urn:ietf:params:xml:ns:xmpp-sasl", "failure", function (origin, stanza)
|
||||||
if origin.external_auth == "failed" then
|
if origin.external_auth == "failed" then
|
||||||
module:log("debug", "SASL EXTERNAL failed, falling back to dialback");
|
module:log("debug", "SASL EXTERNAL failed, falling back to dialback");
|
||||||
initiate_dialback(origin);
|
initiate_dialback(origin);
|
||||||
|
@ -197,7 +197,7 @@ module:hook_stanza("urn:ietf:params:xml:ns:xmpp-sasl", "failure", function (orig
|
||||||
end
|
end
|
||||||
end, 100);
|
end, 100);
|
||||||
|
|
||||||
module:hook_stanza(xmlns_stream, "features", function (origin, stanza)
|
module:hook_tag(xmlns_stream, "features", function (origin, stanza)
|
||||||
if not origin.external_auth or origin.external_auth == "failed" then
|
if not origin.external_auth or origin.external_auth == "failed" then
|
||||||
module:log("debug", "Initiating dialback...");
|
module:log("debug", "Initiating dialback...");
|
||||||
initiate_dialback(origin);
|
initiate_dialback(origin);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue