mod_dialback, mod_saslauth: Remove broken fallback to dialback on SASL EXTERNAL failure

This commit is contained in:
Kim Alvefur 2014-09-23 14:23:01 +02:00
parent b58d3248b7
commit d33c824d1f
2 changed files with 2 additions and 12 deletions

View file

@ -176,14 +176,6 @@ module:hook("stanza/jabber:server:dialback:result", function(event)
end
end);
module:hook_stanza("urn:ietf:params:xml:ns:xmpp-sasl", "failure", function (origin, stanza)
if origin.external_auth == "failed" then
module:log("debug", "SASL EXTERNAL failed, falling back to dialback");
initiate_dialback(origin);
return true;
end
end, 100);
module:hook_stanza(xmlns_stream, "features", function (origin, stanza)
if not origin.external_auth or origin.external_auth == "failed" then
module:log("debug", "Initiating dialback...");