You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The key 'RECAPTCHA_LANG' must match the list provided by Google, or be left empty
655
666
// Check for valid recaptcha-lang: en-GB
656
667
if (!in_array($jsonContent['extra']['recaptcha-lang'], $this->reCaptchaLanguages))
657
668
{
658
-
$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);
669
+
$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".', $originFile);
659
670
}
660
-
// Check for valid turnstile-lang: en (should be in: https://developers.cloudflare.com/turnstile/reference/supported-languages/ )
671
+
// Check for valid turnstile-lang: en
672
+
// (should be in: https://developers.cloudflare.com/turnstile/reference/supported-languages/ )
661
673
if (!in_array($jsonContent['extra']['turnstile-lang'], $this->reTurnstilesLanguages))
662
674
{
663
-
$this->output->addMessage(Output::ERROR, 'Turnstile must match a 2-digit-language code from https://developers.cloudflare.com/turnstile/reference/supported-languages/ ', $originFile);
675
+
$this->output->addMessage(Output::ERROR, 'Turnstile must match a 2-digit-language code from https://developers.cloudflare.com/turnstile/reference/supported-languages/ - if no code exists for your language you can use "en".', $originFile);
$expected = 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--RECAPTCHA_LANG';
@@ -55,7 +55,7 @@ public function testValidateLangReCaptcha()
0 commit comments