Software /
code /
prosody
Comparison
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 |
parent | 12662:07424992d7fc |
child | 12677:3b9771d496ed |
comparison
equal
deleted
inserted
replaced
12639:6d9ee0a3eb4b | 12674:72f431b4dc2c |
---|---|
257 end | 257 end |
258 end | 258 end |
259 end | 259 end |
260 | 260 |
261 module:hook_global("user-password-changed", disconnect_user_sessions({ condition = "reset", text = "Password changed" }, true), 200); | 261 module:hook_global("user-password-changed", disconnect_user_sessions({ condition = "reset", text = "Password changed" }, true), 200); |
262 module:hook_global("user-roles-changed", disconnect_user_sessions({ condition = "reset", text = "Roles changed" }), 200); | 262 module:hook_global("user-role-changed", disconnect_user_sessions({ condition = "reset", text = "Role changed" }), 200); |
263 module:hook_global("user-deleted", disconnect_user_sessions({ condition = "not-authorized", text = "Account deleted" }), 200); | 263 module:hook_global("user-deleted", disconnect_user_sessions({ condition = "not-authorized", text = "Account deleted" }), 200); |
264 | 264 |
265 function runner_callbacks:ready() | 265 function runner_callbacks:ready() |
266 if self.data.conn then | 266 if self.data.conn then |
267 self.data.conn:resume(); | 267 self.data.conn:resume(); |