Fix a bug with failed logins in user_admin.
authorkkalev <kkalev>
Tue, 10 Sep 2002 07:47:05 +0000 (07:47 +0000)
committerkkalev <kkalev>
Tue, 10 Sep 2002 07:47:05 +0000 (07:47 +0000)
dialup_admin/Changelog
dialup_admin/htdocs/user_admin.php3

index e2888e4..f758545 100644 (file)
@@ -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
index e60603c..7031202 100644 (file)
@@ -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(*)'];