Skip to content

Commit

Permalink
fixed reCAPTCHA DDoS check
Browse files Browse the repository at this point in the history
  • Loading branch information
REJack committed Jun 2, 2016
1 parent 35e3a41 commit a731c28
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 @@ -185,7 +185,7 @@ public function login($identifier, $pass, $remember = FALSE, $totp_code = NULL)
$query = $this->aauth_db->where($db_identifier, $identifier);
$query = $this->aauth_db->get($this->config_vars['users']);
$row = $query->row();
if($query->num_rows() > 0 && $this->config_vars['ddos_protection'] && $this->config_vars['recaptcha_active'] && $row->login_attempts >= $this->config_vars['recaptcha_login_attempts']){
if($query->num_rows() > 0 && $this->config_vars['ddos_protection'] && $this->config_vars['recaptcha_active'] && $this->update_login_attempts() >= $this->config_vars['recaptcha_login_attempts']){
if($this->config_vars['use_cookies'] == TRUE){
$reCAPTCHA_cookie = array(
'name' => 'reCAPTCHA',
Expand Down

0 comments on commit a731c28

Please sign in to comment.