Mercurial > prosody-hg
diff plugins/mod_c2s.lua @ 12674:72f431b4dc2c
Merge role-auth->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 22 Aug 2022 13:53:35 +0100 |
| parents | 07424992d7fc |
| children | 3b9771d496ed |
line wrap: on
line diff
--- a/plugins/mod_c2s.lua Fri Aug 19 14:24:31 2022 +0200 +++ b/plugins/mod_c2s.lua Mon Aug 22 13:53:35 2022 +0100 @@ -259,7 +259,7 @@ end module:hook_global("user-password-changed", disconnect_user_sessions({ condition = "reset", text = "Password changed" }, true), 200); -module:hook_global("user-roles-changed", disconnect_user_sessions({ condition = "reset", text = "Roles changed" }), 200); +module:hook_global("user-role-changed", disconnect_user_sessions({ condition = "reset", text = "Role changed" }), 200); module:hook_global("user-deleted", disconnect_user_sessions({ condition = "not-authorized", text = "Account deleted" }), 200); function runner_callbacks:ready()
