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
I have replaced old ReCaptcha with new NoCaptcha ReCaptcha wich is look like that:
old code
post.php:198-208
if ($config['recaptcha']) {
if (!isset($_POST['recaptcha_challenge_field']) || !isset($_POST['recaptcha_response_field']))
error($config['error']['bot']);
// Check what reCAPTCHA has to say...
$resp = recaptcha_check_answer($config['recaptcha_private'],
$_SERVER['REMOTE_ADDR'],
$_POST['recaptcha_challenge_field'],
$_POST['recaptcha_response_field']);
if (!$resp->is_valid) {
error($config['error']['captcha']);
}
}
new code
post.php:198-211
if ($config['recaptcha']) {
if (!isset($_POST['g-recaptcha-response'])) {
// Check what reCAPTCHA has to say...
error($config['error']['bot']);
} else {
$captcha=$_POST['g-recaptcha-response'];
}
$response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$config['recaptcha_private']."&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']);
$decoded_response = json_decode($response, true);
if($decoded_response["success"] == false) {
error($config['error']['captcha']);
}
}
After that flood checker (post.php:229-232) ends up with an error no matter what you typing. Which has no sense to me.
I have replaced old ReCaptcha with new NoCaptcha ReCaptcha wich is look like that:
old code
post.php:198-208
new code
post.php:198-211
After that flood checker (post.php:229-232) ends up with an error no matter what you typing. Which has no sense to me.
Anyone has any ideas? BTW new ReCaptcha working just fine if delete this flood checker all together.
The text was updated successfully, but these errors were encountered: