From 4e0db4a59192d069cd2eff87da219553a99cb8c3 Mon Sep 17 00:00:00 2001 From: Emre Akay Date: Wed, 2 Jul 2014 12:43:34 +0300 Subject: [PATCH] ddos protection --- application/libraries/Aauth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index ae3e00a..37678d3 100644 --- a/application/libraries/Aauth.php +++ b/application/libraries/Aauth.php @@ -129,7 +129,7 @@ class Aauth { $row = $query->row(); // only email found and login attempts exceeded - if ($query->num_rows() > 0 and ! $this->update_login_attempts($row->email)) { + if ($query->num_rows() > 0 and $this->config_vars['ddos_protection'] and ! $this->update_login_attempts($row->email)) { $this->error($this->config_vars['wrong']); return false;