From 1006f8800f2c3e0b0a4f41e9dd0994ba3446a786 Mon Sep 17 00:00:00 2001 From: Raphael Jackstadt Date: Sun, 7 Dec 2014 05:20:40 +0100 Subject: [PATCH] lil fix for reCAPTCHA --- application/libraries/Aauth.php | 6 ++++++ 1 file changed, 6 insertions(+) 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',