diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-27 07:37:58 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-27 07:37:58 -0700 |
commit | 70521d55a811347fa30f37187e43b8a1fd932e21 (patch) | |
tree | 34a389db7f619a7a9a3a45ded3fcf8f9ed05e8be /actions/api.php | |
parent | 7af94dc12562b8114f0f823dc8438234125022da (diff) |
log IP for API auth errors
Diffstat (limited to 'actions/api.php')
-rw-r--r-- | actions/api.php | 4 |
1 files changed, 3 insertions, 1 deletions
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(); } } |