diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index 68a3122e..eade8786 100644 --- a/application/libraries/Aauth.php +++ b/application/libraries/Aauth.php @@ -134,6 +134,12 @@ public function login($email, $pass, $remember = FALSE) { $this->error($this->CI->lang->line('exceeded')); return false; } + + //recaptcha login_attempts check + $query = null; + $query = $this->CI->db->where('email', $email); + $query = $this->CI->db->get($this->config_vars['users']); + $row = $query->row(); if($query->num_rows() > 0 and $this->config_vars['ddos_protection'] and $this->config_vars['recaptcha_active'] and $row->login_attempts >= $this->config_vars['recaptcha_login_attempts']){ $reCAPTCHA_cookie = array( 'name' => 'reCAPTCHA',