]> git.wh0rd.org - tt-rss.git/blobdiff - classes/api.php
another implementation of pull 386 (show next when finished reading)
[tt-rss.git] / classes / api.php
index a9216c58b222c404500cba1831fa5e0b0834e1cc..6bcb92152236d62ed535862751cb4f7d6f71d8cc 100644 (file)
@@ -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 {