Browse Source

ddos protection

develop
Emre Akay 11 years ago
parent
commit
4e0db4a591
  1. 2
      application/libraries/Aauth.php

2
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;

Loading…
Cancel
Save