aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_saslauth.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-09-23 14:23:01 +0200
committerKim Alvefur <zash@zash.se>2014-09-23 14:23:01 +0200
commitd33c824d1f06cb3427210bdd0cfad954948a70ba (patch)
tree40ebfd90e266ffea9a1c57486c54efc306b782e7 /plugins/mod_saslauth.lua
parentb58d3248b78bce1bc07575ab1ff2a6f30324fc28 (diff)
downloadprosody-d33c824d1f06cb3427210bdd0cfad954948a70ba.tar.gz
prosody-d33c824d1f06cb3427210bdd0cfad954948a70ba.zip
mod_dialback, mod_saslauth: Remove broken fallback to dialback on SASL EXTERNAL failure
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r--plugins/mod_saslauth.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index a07c5fd2..407a561f 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -99,12 +99,10 @@ module:hook_stanza(xmlns_sasl, "failure", function (session, stanza)
module:log("info", "SASL EXTERNAL with %s failed", session.to_host)
-- TODO: Log the failure reason
session.external_auth = "failed"
+ session:close();
+ return true;
end, 500)
-module:hook_stanza(xmlns_sasl, "failure", function (session, stanza)
- -- TODO: Dialback wasn't loaded. Do something useful.
-end, 90)
-
module:hook_stanza("http://etherx.jabber.org/streams", "features", function (session, stanza)
if session.type ~= "s2sout_unauthed" or not session.secure then return; end