mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-28 22:52:27 +02:00
Avoid logging IP addresses in mod_register when it's not desired
Fixes #2326
This commit is contained in:
parent
bb20e5f3fa
commit
4f1d7c4b66
|
@ -326,7 +326,8 @@ try_register(User, Server, Password, SourceRaw, Lang) ->
|
||||||
?INFO_MSG("The account ~s was registered "
|
?INFO_MSG("The account ~s was registered "
|
||||||
"from IP address ~s",
|
"from IP address ~s",
|
||||||
[jid:encode({User, Server, <<"">>}),
|
[jid:encode({User, Server, <<"">>}),
|
||||||
ip_to_string(Source)]),
|
ejabberd_config:may_hide_data(
|
||||||
|
ip_to_string(Source))]),
|
||||||
send_welcome_message(JID),
|
send_welcome_message(JID),
|
||||||
send_registration_notifications(
|
send_registration_notifications(
|
||||||
?MODULE, JID, Source),
|
?MODULE, JID, Source),
|
||||||
|
@ -395,8 +396,9 @@ send_registration_notifications(Mod, UJID, Source) ->
|
||||||
"IP address ~s on node ~w using ~p.",
|
"IP address ~s on node ~w using ~p.",
|
||||||
[get_time_string(),
|
[get_time_string(),
|
||||||
jid:encode(UJID),
|
jid:encode(UJID),
|
||||||
ip_to_string(Source), node(),
|
ejabberd_config:may_hide_data(
|
||||||
Mod])),
|
ip_to_string(Source)),
|
||||||
|
node(), Mod])),
|
||||||
lists:foreach(
|
lists:foreach(
|
||||||
fun(JID) ->
|
fun(JID) ->
|
||||||
ejabberd_router:route(
|
ejabberd_router:route(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user