captcha
captcha copied to clipboard
captcha_api_check sensitive option not work.
public function check($value)
{
if ( ! $this->session->has('captcha'))
{
return false;
}
$key = $this->session->get('captcha.key');
$sensitive = $this->session->get('captcha.sensitive');
if ( ! $sensitive)
{
$value = $this->str->lower($value);
}
$this->session->remove('captcha');
return $this->hasher->check($value, $key);
}
/**
* Captcha check
*
* @param $value
* @return bool
*/
public function check_api($value, $key)
{
return $this->hasher->check($value, $key);
}