# HG changeset patch # User Matthew Wild # Date 1655290059 -3600 # Node ID e9865b0cfb89a4e5df3eb0d140e34b874e6778dc # Parent 999b1c59af6f186965b28f2a9f2ac94d9c906373 mod_saslauth: Rename field from 'scope'->'role' The 'scope' term derives from OAuth, and represents a bundle of permissions. We're now setting on the term 'role' for a bundle of permissions. This change does not affect any public modules I'm aware of. diff -r 999b1c59af6f -r e9865b0cfb89 plugins/mod_saslauth.lua --- a/plugins/mod_saslauth.lua Wed Jun 15 11:37:09 2022 +0100 +++ b/plugins/mod_saslauth.lua Wed Jun 15 11:47:39 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;