Dear Patryk,
I enabled the recaptcha settings and unfortunately, recaptcha is not validated while submitting the form. The form gets submitted without ticking the "Version 2 Recaptcha"
Recaptcha Check not working
Monday, November 25, 2024 1:44:33 PM
Dear Patryk,
Please check the steps I followed:
1. I have enabled the recaptcha from All Settings.
2. Added Private Key and Public key in All Settings.
3. Enabled Recaptcha for Contact Us form.
4. Submitted form without ticking the recaptcha box.
Once submitted, recaptcha was not considered. Recaptcha was visible. But was not considered/validated during from submission. I am using GrandNode Version 4.6
Please check the steps I followed:
1. I have enabled the recaptcha from All Settings.
2. Added Private Key and Public key in All Settings.
3. Enabled Recaptcha for Contact Us form.
4. Submitted form without ticking the recaptcha box.
Once submitted, recaptcha was not considered. Recaptcha was visible. But was not considered/validated during from submission. I am using GrandNode Version 4.6
0
Please check the console (under F12) for error logs or System -> Log. I've checked it on our 4.60 demo and without marked box, I've received "The reCAPTCHA response is invalid or malformed. Please try again." response.
By the way, it's better to configure Captcha on General Settings -> Under Security tab, instead of All Settings.
By the way, it's better to configure Captcha on General Settings -> Under Security tab, instead of All Settings.
Best regards,
Patryk
GrandNode Team
Patryk
GrandNode Team
0
0
I just want to check is this issue resolved or not
I have set this Recaptcha under General settings > Security settings and using version 2.0 but even before checking the "I am not a robot" the submit button is enabled in the contact us page.
Then what is the use of Recaptcha here?
I have set this Recaptcha under General settings > Security settings and using version 2.0 but even before checking the "I am not a robot" the submit button is enabled in the contact us page.
Then what is the use of Recaptcha here?
0
As far as I know, we've solved this issue in the commit which Krzysztof added above. Please look there: https://github.com/grandnode/grandnode/commit/66860e9c4e8f46bdbd53403da4ed1b349740bd85#diff-ef7c5b2f2a4d5e3c9f3a068946b466db
Best regards,
Patryk
GrandNode Team
Patryk
GrandNode Team
0
I figured out the issue with my site Captcha.
It was at the controller level==>Common Controller
Action name==>ContactUsSend
Validation didn't have return if captcha fails.
if (_captchaSettings.Enabled && _captchaSettings.ShowOnContactUsPage && !captchaValid)
{
ModelState.AddModelError("", _captchaSettings.GetWrongCaptchaMessage(_localizationService));
return View(model);
}
It was at the controller level==>Common Controller
Action name==>ContactUsSend
Validation didn't have return if captcha fails.
if (_captchaSettings.Enabled && _captchaSettings.ShowOnContactUsPage && !captchaValid)
{
ModelState.AddModelError("", _captchaSettings.GetWrongCaptchaMessage(_localizationService));
return View(model);
}
0