From: Dave Zaikos Date: Sat, 25 Jan 2014 00:19:10 +0000 (-0500) Subject: Added syslog reporting for failed API login attempts. X-Git-Tag: 1.12~114^2^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a2108ee96d308e2359ebd132417d8c042c8b0a58;p=tt-rss.git Added syslog reporting for failed API login attempts. --- diff --git a/classes/api.php b/classes/api.php index a9216c58..6bcb9215 100644 --- a/classes/api.php +++ b/classes/api.php @@ -77,6 +77,7 @@ class API extends Handler { $this->wrap(self::STATUS_OK, array("session_id" => session_id(), "api_level" => self::API_LEVEL)); } else { // else we are not logged in + user_error("Failed login attempt for $login from {$_SERVER['REMOTE_ADDR']}", E_USER_WARNING); $this->wrap(self::STATUS_ERR, array("error" => "LOGIN_ERROR")); } } else {