plugins/mod_saslauth.lua
changeset 10647 417eadd0f567
parent 10492 03ff1e614b4d
child 11218 5fb6563eee1e
--- a/plugins/mod_saslauth.lua	Wed Feb 05 17:56:20 2020 +0000
+++ b/plugins/mod_saslauth.lua	Wed Feb 05 17:56:44 2020 +0000
@@ -49,7 +49,7 @@
 		module:fire_event("authentication-failure", { session = session, condition = ret, text = err_msg });
 		session.sasl_handler = session.sasl_handler:clean_clone();
 	elseif status == "success" then
-		local ok, err = sm_make_authenticated(session, session.sasl_handler.username);
+		local ok, err = sm_make_authenticated(session, session.sasl_handler.username, session.sasl_handler.scope);
 		if ok then
 			module:fire_event("authentication-success", { session = session });
 			session.sasl_handler = nil;