mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
mod_admin_extra: Run sm_kick_user event when kicking account (#4415)
This is important when running the ban_account command and mod_auth_fast is enabled, as the client may store auth tokens that bypass the banning stored in private storage and enforced by ejabberd_auth.
This commit is contained in:
parent
9d17a160b6
commit
45a6aed57f
1 changed files with 1 additions and 0 deletions
|
@ -1158,6 +1158,7 @@ ban_account(User, Host, ReasonText) ->
|
|||
ok.
|
||||
|
||||
kick_sessions(User, Server, Reason) ->
|
||||
ejabberd_hooks:run(sm_kick_user, Server, [User, Server]),
|
||||
lists:map(
|
||||
fun(Resource) ->
|
||||
kick_this_session(User, Server, Resource, Reason)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue