Recaptcha Check not working

23 stycznia 2021 12:47:53
  • Wysłany: 20 lipca 2020 09:30
  • 68
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"
0
  • Wysłany: 20 lipca 2020 10:38
  • Moderator
  • 830
Samson,

Please give us steps to reproduce the issue. Without them it would be hard to check the issue, we haven't noticed any problems with reCAPTCHA
Best regards,
Patryk

GrandNode Team
0
  • Wysłany: 20 lipca 2020 10:49
  • 68
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
0
  • Wysłany: 20 lipca 2020 10:55
  • Moderator
  • 830
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.
Best regards,
Patryk

GrandNode Team
0
  • Wysłany: 20 lipca 2020 12:09
  • Moderator
  • 82
0
  • Wysłany: 1 września 2020 16:02
  • 13
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?
0
  • Wysłany: 2 września 2020 07:12
  • 68
this issue is still happening for me too. No idea why. I have parked this issue now, as I am working on some other projects. Once I get into this , I shall update you .
0
  • Wysłany: 2 września 2020 07:18
  • Moderator
  • 830
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
0
  • Wysłany: 2 września 2020 07:20
  • 68
Thanks Patryk, I will check once again and let you know
0
  • Wysłany: 3 września 2020 09:49
  • 68
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);
            }
0
back to top
Filters