mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_saslauth: Close connection if no fallback kicks in on SASL EXTERNAL failure
This commit is contained in:
parent
5a07b39c7f
commit
477f77e250
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue