mod_saslauth: Close connection if no fallback kicks in on SASL EXTERNAL failure

This commit is contained in:
Kim Alvefur 2018-02-04 00:58:38 +01:00
parent 5a07b39c7f
commit 477f77e250

View file

@ -113,7 +113,9 @@ module:hook_tag(xmlns_sasl, "failure", function (session, stanza)
end, 500)
module:hook_stanza(xmlns_sasl, "failure", function (session, stanza)
-- TODO: Dialback wasn't loaded. Do something useful.
session.log("debug", "No fallback from SASL EXTERNAL failure, giving up");
session:close();
return true;
end, 90)
module:hook_tag("http://etherx.jabber.org/streams", "features", function (session, stanza)