Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

captcha_api_check sensitive option not work. #148

Open
loadinger opened this issue Oct 24, 2018 · 0 comments
Open

captcha_api_check sensitive option not work. #148

loadinger opened this issue Oct 24, 2018 · 0 comments

Comments

@loadinger
Copy link

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);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant