aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-03-18 16:16:54 +0100
committerKim Alvefur <zash@zash.se>2021-03-18 16:16:54 +0100
commitf1550b900d4095dfde87ccc60bbfebb088b03ef5 (patch)
tree2970943646ac5e66865317b0fc091825f3b62a15 /plugins
parent139cafdbafd73bd2d3359cda4bba2d389a8c87e1 (diff)
downloadprosody-f1550b900d4095dfde87ccc60bbfebb088b03ef5.tar.gz
prosody-f1550b900d4095dfde87ccc60bbfebb088b03ef5.zip
mod_saslauth: Use a defined SASL error
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_saslauth.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 5ba53f21..6cd69f82 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -45,7 +45,7 @@ end
local function handle_status(session, status, ret, err_msg)
if not session.sasl_handler then
- return "failure", "connection-timeout", "Connection gone";
+ return "failure", "temporary-auth-failure", "Connection gone";
end
if status == "failure" then
module:fire_event("authentication-failure", { session = session, condition = ret, text = err_msg });