Skip to content

Commit

Permalink
ddos protection
Browse files Browse the repository at this point in the history
  • Loading branch information
Emre Akay committed Jul 2, 2014
1 parent ecbadd9 commit 4e0db4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function login($email, $pass, $remember = FALSE) {
$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;
Expand Down

0 comments on commit 4e0db4a

Please sign in to comment.