Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
@@ -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',

0 comments on commit 1006f88

Please sign in to comment.