aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2020-02-05 17:56:44 +0000
committerMatthew Wild <mwild1@gmail.com>2020-02-05 17:56:44 +0000
commitcfa4181982f768ca5d376db8db45951815429665 (patch)
tree4c8e56c31d625e64fce5f5727fbfddd4d3f245cb /plugins
parent783af2135e96ad2af8325a32f7f06f7cf51642db (diff)
downloadprosody-cfa4181982f768ca5d376db8db45951815429665.tar.gz
prosody-cfa4181982f768ca5d376db8db45951815429665.zip
mod_saslauth: Pass through any auth scope from the SASL handler to sessionmanager.make_authenticated()
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 ecce8361..2a5edcb2 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -49,7 +49,7 @@ local function handle_status(session, status, ret, err_msg)
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;