Skip to content

Commit

Permalink
fixed cookie creation for reCAPTCHA if it's not active
Browse files Browse the repository at this point in the history
  • Loading branch information
REJack committed May 12, 2015
1 parent 6b68f4c commit 5df18c0
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,16 @@ public function login($email, $pass, $remember = FALSE) {
$this->CI->input->set_cookie($cookie);
}

$reCAPTCHA_cookie = array(
'name' => 'reCAPTCHA',
'value' => 'false',
'expire' => time()-3600,
'path' => '/',
);
$this->CI->input->set_cookie($reCAPTCHA_cookie);

if($this->config_vars['recaptcha_active']){
$reCAPTCHA_cookie = array(
'name' => 'reCAPTCHA',
'value' => 'false',
'expire' => time()-3600,
'path' => '/',
);
$this->CI->input->set_cookie($reCAPTCHA_cookie);
}

// update last login
$this->update_last_login($row->id);
$this->update_activity();
Expand Down

0 comments on commit 5df18c0

Please sign in to comment.