captcha icon indicating copy to clipboard operation
captcha copied to clipboard

captcha_api_check sensitive option not work.

Open loadinger opened this issue 6 years ago • 0 comments

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);
}

loadinger avatar Oct 24 '18 06:10 loadinger