From c4cab4ecf476d3db6e62126541abb5f318ff2188 Mon Sep 17 00:00:00 2001 From: guillaume-uH57J9 Date: Sat, 6 Jul 2013 15:34:42 +0200 Subject: [PATCH] Report failed login attemps using user_error --- classes/handler/public.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/handler/public.php b/classes/handler/public.php index 205853ea..f67c4fb9 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']) { -- 2.39.5