]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
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)
Changelog
htdocs/user_admin.php3

index e2888e49211d15ff381336fc1360a21a76e6f91d..f758545edf81db756e99ffdba0b3abd878957761 100644 (file)
--- 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
index e60603ccd0cca4ed5a883b8f36c2206540011f74..703120293e233627dbb4bf5584d151144ad8b415 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(*)'];