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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user