Mercurial > prosody-hg
diff plugins/mod_saslauth.lua @ 12674:72f431b4dc2c
Merge role-auth->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 22 Aug 2022 13:53:35 +0100 |
| parents | e9865b0cfb89 |
| children | 27a4a7e64831 |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Fri Aug 19 14:24:31 2022 +0200 +++ b/plugins/mod_saslauth.lua Mon Aug 22 13:53:35 2022 +0100 @@ -52,7 +52,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, session.sasl_handler.scope); + local ok, err = sm_make_authenticated(session, session.sasl_handler.username, session.sasl_handler.role); if ok then module:fire_event("authentication-success", { session = session }); session.sasl_handler = nil;
