Skip to content

Empty response #228

@xpowert

Description

@xpowert

Hello, I set up captcha and when I do a security check it gives me error wrong captcha, so I check the response and I always get an empty response.
My PHP file. Right now it prints out the response, what is always empty.

`///Start Captcha

	$captcha		= HTTP::_GP('g-recaptcha-response', '');
	if (Config::get('capaktiv') === '1')
	{
		
        require('./includes/libs/reCAPTCHA/autoload.php');
			
			
        $recaptcha = new \ReCaptcha\ReCaptcha(Config::get('capprivate'));
        $resp = $recaptcha->verify($captcha, Session::getClientIp());
		$reaper = $captcha;
        if (!$resp->isSuccess())
        {
            $errors[]	= $reaper;
			
        }
	}
	
	///End captcha`

Live version here -> http://eogame.a2hosted.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions