summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-01-25 11:28:41 +0400
committerAndrew Dolgov <[email protected]>2014-01-25 11:28:41 +0400
commit67512a696db4b128d9de8634abb0fd05d8670824 (patch)
treedbd33a16c572277ad815b648bb71099743678134
parentef8e54a16dc0888b6db886a132b10617e3f1c5bf (diff)
parent9113e738c95777c4e3900709afa904321d732995 (diff)
Merge branch 'master' of github.com:gothfox/Tiny-Tiny-RSS
-rw-r--r--classes/api.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/api.php b/classes/api.php
index a9216c58b..6bcb92152 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 {