Changeset

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
parents 2241:ac3bd7c42c8b
children 2243:bd17dd75b4a5
files plugins/mod_saslauth.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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