Skip to content
Snippets Groups Projects
Commit 02f95591 authored by messica's avatar messica
Browse files

Fix reCAPTCHA v3 validation when token is in $_POST['captcha']

parent 017fb8d6
No related branches found
No related tags found
1 merge request!12Fix reCAPTCHA v3 validation when token is in $_POST['captcha']
......@@ -144,13 +144,13 @@ class Recaptcha {
return;
}
if (isset($_POST['g-recaptcha-token'])) {
if (!empty($_POST['g-recaptcha-token'])) {
$token = $_POST['g-recaptcha-token'];
}
else if (isset($_POST['g-recaptcha-response'])) {
else if (!empty($_POST['g-recaptcha-response'])) {
$token = $_POST['g-recaptcha-response'];
}
else if (isset($_POST['captcha'])) {
else if (!empty($_POST['captcha'])) {
$token = $_POST['captcha'];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment