]> git.wh0rd.org Git - tt-rss.git/commitdiff
Report failed login attemps using user_error
authorguillaume-uH57J9 <guillaume@atto.be>
Sat, 6 Jul 2013 13:34:42 +0000 (15:34 +0200)
committerguillaume-uH57J9 <guillaume@atto.be>
Sat, 6 Jul 2013 13:34:42 +0000 (15:34 +0200)
classes/handler/public.php

index 205853eae6765211d8e03e6c1ac7e11eef453e6a..f67c4fb9aca72a1864b0651f518e6e1dfca5b16a 100644 (file)
@@ -545,6 +545,7 @@ class Handler_Public extends Handler {
                                }
                        } else {
                                $_SESSION["login_error_msg"] = __("Incorrect username or password");
+                               user_error("Failed login attempt from {$_SERVER['REMOTE_ADDR']}", E_USER_WARNING);
                        }
 
                        if ($_REQUEST['return']) {