From: kkalev Date: Tue, 10 Sep 2002 07:47:05 +0000 (+0000) Subject: Fix a bug with failed logins in user_admin. X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=65dfac1f5a40ced64dc1c6f7a0ba11064673bb41;p=freeradius-dialup-admin.git Fix a bug with failed logins in user_admin. --- diff --git a/Changelog b/Changelog index e2888e4..f758545 100644 --- a/Changelog +++ b/Changelog @@ -54,6 +54,7 @@ Ver 1.59: * Add a failed logins page, to show the most recent failed logins. * Fix a bug in the failed logins page * Change use of AcctStartTime with AcctStopTime in failed_logins.php3 to match that in user_admin +* Fix a bug with failed logins in user_admin. Ver 1.55: * Update the FAQ about missing attributes from the user/group edit pages and add a few comments in the configuration files diff --git a/htdocs/user_admin.php3 b/htdocs/user_admin.php3 index e60603c..7031202 100644 --- a/htdocs/user_admin.php3 +++ b/htdocs/user_admin.php3 @@ -102,9 +102,9 @@ if ($link){ $search = @da_sql_query($link,$config, "SELECT COUNT(*) FROM $config[sql_accounting_table] WHERE UserName = '$login' AND AcctStopTime >= '$week_str' AND AcctStopTime <= '$now_str' - AND AcctTerminateCause LIKE 'Login-Incorrect%' OR + AND (AcctTerminateCause LIKE 'Login-Incorrect%' OR AcctTerminateCause LIKE 'Invalid-User%' OR - AcctTerminateCause LIKE 'Multiple-Logins%';"); + AcctTerminateCause LIKE 'Multiple-Logins%');"); if ($search){ $row = @da_sql_fetch_array($search,$config); $tot_badlogins = $row['COUNT(*)'];