Mercurial > prosody-modules
view mod_audit_auth/mod_audit_auth.lua @ 5733:b6518a71ca7e
mod_storage_s3: Implement search for set of IDs
This together with the full id range query enables support for
urn:xmpp:mam:2#extended in mod_mam
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Nov 2023 22:44:01 +0100 |
parents | b357ff3d0c8a |
children | dfbced5e54b9 |
line wrap: on
line source
local jid = require"util.jid"; module:depends("audit"); -- luacheck: read globals module.audit module:hook("authentication-failure", function(event) local session = event.session; module:audit(jid.join(session.sasl_handler.username, module.host), "authentication-failure", { session = session, }); end) module:hook("authentication-success", function(event) local session = event.session; module:audit(jid.join(session.sasl_handler.username, module.host), "authentication-success", { session = session, }); end)