SharkyKZ / joomla-recaptcha-v3-plugin

Google reCAPTCHA v3 plugin for Joomla! 5.0 and 4.0.
GNU General Public License v3.0
8 stars 0 forks source link

Page is reloading and form is not sent #4

Open webmasterab opened 5 months ago

webmasterab commented 5 months ago

I have a Yootheme template that contains a module for a contact form.

When I activate the plugin, it is neatly listed at the bottom of the site.

However, when I want to send in the form, it is checked whether everything has been completed. But immediately afterwards the page is refreshed and everything has to be done again.

The form cannot be used if the plugin is enabled.

SharkyKZ commented 4 months ago

Which contact module is that?

webmasterab commented 4 months ago

https://www.rsjoomla.com/joomla-extensions/joomla-contact-form.html

I use this one. I then linked it to the module id via an article.

Loading directly into a yootheme page with a module position gives the same problem.


Van: SharkyKZ @.> Verzonden: donderdag 11 april 2024 09:03 Aan: SharkyKZ/joomla-recaptcha-v3-plugin @.> CC: webmasterab @.>; Author @.> Onderwerp: Re: [SharkyKZ/joomla-recaptcha-v3-plugin] Page is reloading and form is not sent (Issue #4)

Which contact module is that?

— Reply to this email directly, view it on GitHubhttps://github.com/SharkyKZ/joomla-recaptcha-v3-plugin/issues/4#issuecomment-2049048748, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB5D7ZYAGF6MLJTH5R335QDY4YYVFAVCNFSM6AAAAABFZFAWAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBZGA2DQNZUHA. You are receiving this because you authored the thread.Message ID: @.***>

SharkyKZ commented 4 months ago

I looked into this and there are two issues. One is a JavaScript conflict between the module and captcha plugin. This one I can fix by providing an option to run captcha on page load and not on form submit as it currently does. One thing to note about this is that captcha tokens expired in 2 minutes. So this isn't great for long forms.

Second issue is that the module doesn't pass the captcha token to the plugin. This is something that will need to be fixed in the module itself so you'd have to ask the module developers about this.

webmasterab commented 4 months ago

I will then report it to the module developer.

It's strange because it works on a Joomla installation that has already contained the captacha since version 4.

But that plugin is no longer available in Joomla 5. And that's why I'm running into this now.

Hopefully it can be solved so that it can be used.

I will keep you informed about the module and the ticket I submit there