mod_saslauth: Use renamed API for hooking non-stanzas

This commit is contained in:
Kim Alvefur 2018-02-04 01:03:44 +01:00
parent e925f5a34a
commit e1542aa2ee

View file

@ -113,7 +113,7 @@ module:hook_tag(xmlns_sasl, "failure", function (session, stanza)
session.external_auth_failure_reason = condition; session.external_auth_failure_reason = condition;
end, 500) end, 500)
module:hook_stanza(xmlns_sasl, "failure", function (session, stanza) module:hook_tag(xmlns_sasl, "failure", function (session, stanza)
session.log("debug", "No fallback from SASL EXTERNAL failure, giving up"); session.log("debug", "No fallback from SASL EXTERNAL failure, giving up");
session:close(nil, session.external_auth_failure_reason); session:close(nil, session.external_auth_failure_reason);
return true; return true;