Actually there is a command to ban a user by changing the user's password with a random one, but anyway the user can also try to login with the wrong password which has been changed by the server.
i am wondering if there is a possibility to discard the banned user's connection to the server ?
Thanks.
Yes. There is an example in
Yes. There is an example in the ejabberd Guide that blocks access to user "bad" to the c2s listener
Search for those lines in https://docs.ejabberd.im/admin/configuration/#listening-module
Thanks.
Thanks.