mod_saslauth: Use a defined SASL error

This commit is contained in:
Kim Alvefur 2021-03-18 16:16:54 +01:00
parent 139cafdbaf
commit f1550b900d

View file

@ -45,7 +45,7 @@ end
local function handle_status(session, status, ret, err_msg) local function handle_status(session, status, ret, err_msg)
if not session.sasl_handler then if not session.sasl_handler then
return "failure", "connection-timeout", "Connection gone"; return "failure", "temporary-auth-failure", "Connection gone";
end end
if status == "failure" then if status == "failure" then
module:fire_event("authentication-failure", { session = session, condition = ret, text = err_msg }); module:fire_event("authentication-failure", { session = session, condition = ret, text = err_msg });