pe7er / hCaptcha

A simple CAPTCHA Plugin using the hCaptcha service to protect your Joomla site against SPAM
13 stars 7 forks source link

Invalid Captcha Code error #50

Closed trlbldr1 closed 6 months ago

trlbldr1 commented 7 months ago

I manage a website for U.S. Navy cryptologic veterans and us hCaptcha on our Contact forms and, more importantly, our Sign Up form (https://usncva.org/about/sign-up.html). For years we used Google ReCaptcha on our forms, but Joomla 5 doesn't ship with the native ReCaptcha plugin. That's when I installed hCaptcha and configured it. However, when a veteran now tries to sign up with us - when hCaptcha shows the person is human - Joomla kicks out an "invalid Captcha code" error. Site Particulars: Joomla 5.0.2 PHP 8.2.14 MySQLi MySQLi 10.6.16-MariaDB Community Builder 2.9.1 CB AntiSpam plugin 5.0.1 hCaptcha j4-1.4.3 (Joomla 5) I am very confused.

brianteeman commented 7 months ago

I am getting exactly the same

brianteeman commented 7 months ago

In my case the problem was that I did not have the correct site secret key.

pe7er commented 7 months ago

@trlbldr1 Could you double check your hCaptcha Site and Secret key? And ensure that there are no spaces added before or after them.

jenny-mac commented 1 month ago

Hi, not certain my issue is exactly the same, but I think similar. Built my dev site and added hcaptcha. Moved the site live and added hcaptcha. Set up an hcaptcha account with both sites, so two different site keys, but, if I undertand my account, I have one secret key. Both sites have what I believe is the correct site key inputted into the joomla plugin. The dev site error message reads - Error PLG_SYSTEM_HCAPTCHA_sitekey_secret_mismatch My live site error message reads - You'll need to setup your Sitekey in order to use hCaptcha. I set up identical rsform on both sites, so have checked both settings/paramters, but getting 2 error messages.

dev site details live site details Love your thought. Thanks

pe7er commented 1 month ago

I set up identical rsform on both sites, so have checked both settings/paramters, but getting 2 error messages.

Hi @jenny-mac, This hCaptcha plugin is only for extensions that use Joomla's core Captcha functionality, like Joomla's com_contact form.

RSForm does not use Joomla's core Captcha functionality but it has its own Captcha plugins, like reCaptcha and hCaptcha. You have to download that plugin from RSJoomla, install it, enable it under Plugins. Then in the RSForm configuration, a new tab appears where you can add the site + secret key.

jenny-mac commented 1 month ago

Thanks @pe7er It looks like I have got it working. Thanks for that extra info to point me in the right direction.

pe7er commented 1 month ago

Good to hear @jenny-mac Thanks for your follow-up!