aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-11-26 23:18:26 +0100
committerTobias Markmann <tm@ayena.de>2009-11-26 23:18:26 +0100
commitc65488fc2befa056ce844e59fa3472c0a297bd7e (patch)
tree7dd0fc09b115d90496866dc0406d4a8254a4a514 /plugins
parent44b3480e14445945d009e6a7eb2fec94e085920c (diff)
downloadprosody-c65488fc2befa056ce844e59fa3472c0a297bd7e.tar.gz
prosody-c65488fc2befa056ce844e59fa3472c0a297bd7e.zip
mod_saslauth: Allow relogins after failed SASL login.
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 04e33b29..9d4b27a1 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -75,7 +75,7 @@ end
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