diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-10-09 15:01:34 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-10-09 15:01:34 +0100 |
commit | fd3589a25e6b2b856a0b4e38b0ae7cb8b47c1aec (patch) | |
tree | abcd2254da4d6a497aa6d59a205abe2595f5d170 | |
parent | a9963c54c9fca2b071d8c715ffa17b0e2c183a43 (diff) | |
download | prosody-fd3589a25e6b2b856a0b4e38b0ae7cb8b47c1aec.tar.gz prosody-fd3589a25e6b2b856a0b4e38b0ae7cb8b47c1aec.zip |
mod_register_ibr: Include password in user-registering event, to allow e.g. password policy enforcement
-rw-r--r-- | plugins/mod_register_ibr.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_register_ibr.lua b/plugins/mod_register_ibr.lua index dc7168b4..abfc1079 100644 --- a/plugins/mod_register_ibr.lua +++ b/plugins/mod_register_ibr.lua @@ -158,7 +158,7 @@ module:hook("stanza/iq/jabber:iq:register:query", function(event) return true; end - local user = { username = username , host = host, additional = data, ip = session.ip, session = session, allowed = true } + local user = { username = username, password = password, host = host, additional = data, ip = session.ip, session = session, allowed = true } module:fire_event("user-registering", user); if not user.allowed then log("debug", "Registration disallowed by module: %s", user.reason or "no reason given"); |