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 | 5de88f3169fc5de6a1edaec2d449f2a0e971c4c0 (patch) | |
tree | e74c77c2f9665a6650d18ce68a75411a27124772 | |
parent | 3bf7392fd843e689b165d796591fc15f14609976 (diff) | |
download | prosody-5de88f3169fc5de6a1edaec2d449f2a0e971c4c0.tar.gz prosody-5de88f3169fc5de6a1edaec2d449f2a0e971c4c0.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"); |