Skip to content
Snippets Groups Projects
Commit a2108ee9 authored by Dave Zaikos's avatar Dave Zaikos
Browse files

Added syslog reporting for failed API login attempts.

parent 1d3cbe31
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment