1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 17:59:31 +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:
Badlop 2025-07-16 18:08:23 +02:00
parent 9d17a160b6
commit 45a6aed57f

View file

@ -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)