captcha icon indicating copy to clipboard operation
captcha copied to clipboard

if the code is right, the code is not removed

Open FantasyLeo opened this issue 8 years ago • 0 comments

in "captcha/src/Captcha.php"

    public function check($value)
    {
        if ( ! $this->session->has('captcha'))
        {
            return false;
        }
        $key = $this->session->get('captcha.key');
        if ( ! $this->session->get('captcha.sensitive'))
        {
            $value = $this->str->lower($value);
        }
        $this->session->remove('captcha');
        return $this->hasher->check($value, $key);
    }

$this->session->remove('captcha'); // doesn't work

FantasyLeo avatar Sep 16 '17 05:09 FantasyLeo