This module stores authentication failures and authentication successes in the audit log provided by mod_audit
.
With the plugin installer in Prosody 0.12 you can use:
sudo prosodyctl install https://modules.prosody.im/rocks/mod_audit_auth-2-1.src.rock
For other see the documentation for installing 3rd party modules