summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeekologist <Conver@users.noreply.github.com>2015-09-15 03:37:49 +0200
committerGeekologist <Conver@users.noreply.github.com>2015-09-15 03:37:49 +0200
commit22597c8d68d1a9738fdd2eb10ca6fbf167b9c048 (patch)
treeb308c3c5a7fae85ac28abc43770fd1858a79edee
parent4926097a76aa7f7018a120e69e0f8494a2790530 (diff)
parent05130fdb6e3e25d8e8ce0136bc1533be6c5fa22d (diff)
downloadPHPAuth-22597c8d68d1a9738fdd2eb10ca6fbf167b9c048.zip
PHPAuth-22597c8d68d1a9738fdd2eb10ca6fbf167b9c048.tar.gz
PHPAuth-22597c8d68d1a9738fdd2eb10ca6fbf167b9c048.tar.bz2
Merge pull request #105 from bugada/master
Advanced attack mitigation doesn't delete expired attempts
-rwxr-xr-xauth.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth.class.php b/auth.class.php
index 943fcc7..4036e6a 100755
--- a/auth.class.php
+++ b/auth.class.php
@@ -1213,7 +1213,7 @@ class Auth
}
- $query = $this->dbh->prepare("SELECT count, expiredate FROM {$this->config->table_attempts} WHERE ip = ?");
+ $query = $this->dbh->prepare("SELECT id, expiredate FROM {$this->config->table_attempts} WHERE ip = ?");
$query->execute(array($ip));
while ($row = $query->fetch(\PDO::FETCH_ASSOC)) {