summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-07-06 06:44:58 -0700
committerAndrew Dolgov <[email protected]>2013-07-06 06:44:58 -0700
commite4eec1d216a67df660c80ef228684c4e171f1ff2 (patch)
tree5bb35b5419c3dcfba3562303dc356191c1e57c3f
parent4b7ebe93a8a59a3bd2e7fb820795314be3db51ce (diff)
parentc4cab4ecf476d3db6e62126541abb5f318ff2188 (diff)
Merge pull request #251 from guillaume-uH57J9/master
Log failed login attemps, related to Feature #432 (try 2)
-rw-r--r--classes/handler/public.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index 205853eae..f67c4fb9a 100644
--- a/classes/handler/public.php
+++ b/classes/handler/public.php
@@ -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']) {