Software /
code /
prosody
Diff
plugins/mod_dialback.lua @ 6424:89c42aff8510
mod_dialback, mod_saslauth: Remove broken fallback to dialback on SASL EXTERNAL failure
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 23 Sep 2014 14:23:01 +0200 |
parent | 6374:f1dd1716aa9d |
child | 7087:dd8265ca9327 |
line wrap: on
line diff
--- a/plugins/mod_dialback.lua Tue Sep 23 00:23:33 2014 +0200 +++ b/plugins/mod_dialback.lua Tue Sep 23 14:23:01 2014 +0200 @@ -176,14 +176,6 @@ 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...");