Software /
code /
prosody
Diff
plugins/mod_saslauth.lua @ 2242:ee6ac55a72d6
mod_saslauth: Allow relogins after failed SASL login.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Thu, 26 Nov 2009 23:18:26 +0100 |
parent | 2208:2dc746323de6 |
child | 2251:18079ede5b62 |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Thu Nov 26 23:11:02 2009 +0100 +++ b/plugins/mod_saslauth.lua Thu Nov 26 23:18:26 2009 +0100 @@ -75,7 +75,7 @@ local function handle_status(session, status) if status == "failure" then - session.sasl_handler = nil; + session.sasl_handler = sesion.sasl_handler:clean_clone(); elseif status == "success" then local username = nodeprep(session.sasl_handler.username); if not username then -- TODO move this to sessionmanager