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
commit6839acc859d00f7cb4dfd91507fa8a0ab9e11355 (patch)
tree4c8e56c31d625e64fce5f5727fbfddd4d3f245cb /plugins
parentdae152e58f50aa0fc7940514bb363068207fcad1 (diff)
downloadprosody-6839acc859d00f7cb4dfd91507fa8a0ab9e11355.tar.gz
prosody-6839acc859d00f7cb4dfd91507fa8a0ab9e11355.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;