Software /
code /
prosody
Changeset
10643:417eadd0f567
mod_saslauth: Pass through any auth scope from the SASL handler to sessionmanager.make_authenticated()
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 05 Feb 2020 17:56:44 +0000 |
parents | 10642:de90b2f5da8c |
children | 10644:6c4ab1b87588 |
files | plugins/mod_saslauth.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;