public function validateReCaptchaValue($originFile, $validate)
	{
		// The key 'RECAPTCHA_LANG' must match the list provided by Google, or be left empty
		// If any other key is used, we will show an error
		if (array_key_exists('RECAPTCHA_LANG', $validate) && !in_array($validate['RECAPTCHA_LANG'], $this->reCaptchaLanguages))
		{
			// The supplied value doesn't match the allowed values
			$this->output->addMessage(Output::ERROR, 'reCaptcha must match a language/country code on https://developers.google.com/recaptcha/docs/language - if no code exists for your language you can use "en" or leave the string empty', $originFile, 'RECAPTCHA_LANG');
		}
	}
public function validateReCaptchaValue($originFile, $validate)
	{
		// The key 'RECAPTCHA_LANG' must match the list provided by Google, or be left empty
		// If any other key is used, we will show an error
		if (array_key_exists('RECAPTCHA_LANG', $validate) && !in_array($validate['RECAPTCHA_LANG'], $this->reCaptchaLanguages))
		{
			// The supplied value doesn't match the allowed values
			$this->output->addMessage(Output::ERROR, 'reCaptcha must match a language/country code on https://developers.google.com/recaptcha/docs/language - if no code exists for your language you can use "en" or leave the string empty', $originFile, 'RECAPTCHA_LANG');
		}
	}
public function validateReCaptchaValue ( $ originFile , $ validate ) { // The key 'RECAPTCHA_LANG' must match the list provided by Google, or be left empty // If any other key is used, we will show an error if ( array_key_exists ( 'RECAPTCHA_LANG' , $ validate ) && ! in_array ( $ validate [ 'RECAPTCHA_LANG' ] , $ this -> reCaptchaLanguages ) ) { // The supplied value doesn't match the allowed values $ this -> output -> addMessage ( Output :: ERROR , 'reCaptcha must match a language/country code on https://developers.google.com/recaptcha/docs/language - if no code exists for your language you can use "en" or leave the string empty' , $ originFile , 'RECAPTCHA_LANG' ) ; } }
Check that the reCaptcha key provided is allowed
@param $originFile
@param array $validate
Check that the reCaptcha key provided is allowed