From 70521d55a811347fa30f37187e43b8a1fd932e21 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 27 Jun 2009 07:37:58 -0700 Subject: log IP for API auth errors --- actions/api.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'actions/api.php') diff --git a/actions/api.php b/actions/api.php index 1fe5875ad..08f5fadad 100644 --- a/actions/api.php +++ b/actions/api.php @@ -67,7 +67,9 @@ class ApiAction extends Action $this->process_command(); } else { # basic authentication failed - common_log(LOG_WARNING, "Failed API auth attempt, nickname: $nickname."); + list($proxy, $ip) = common_client_ip(); + + common_log(LOG_WARNING, "Failed API auth attempt, nickname = $nickname, proxy = $proxy, ip = $ip."); $this->show_basic_auth_error(); } } -- cgit v1.2.3-54-g00ecf