diff options
author | Kim Alvefur <zash@zash.se> | 2018-03-10 02:21:23 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-03-10 02:21:23 +0100 |
commit | 9d92cdc944b12ce6985c77782b3f31f21b630f03 (patch) | |
tree | e74c77c2f9665a6650d18ce68a75411a27124772 | |
parent | 0417cdaae2f27a069f3ee6380a90f066599ec881 (diff) | |
download | prosody-9d92cdc944b12ce6985c77782b3f31f21b630f03.tar.gz prosody-9d92cdc944b12ce6985c77782b3f31f21b630f03.zip |
mod_register_ibr: Include reason for rejection of registration in debug log
-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 6da94937..a3dc3208 100644 --- a/plugins/mod_register_ibr.lua +++ b/plugins/mod_register_ibr.lua @@ -146,7 +146,7 @@ module:hook("stanza/iq/jabber:iq:register:query", function(event) local user = { username = username , 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"); + log("debug", "Registration disallowed by module: %s", user.reason or "no reason given"); session.send(st.error_reply(stanza, "modify", "not-acceptable", user.reason)); elseif usermanager_user_exists(username, host) then log("debug", "Attempt to register with existing username"); |