juban / craft-google-recaptcha Goto Github PK
View Code? Open in Web Editor NEWGoogle reCAPTCHA for Craft CMS 3
Home Page: https://plugins.craftcms.com/google-recaptcha
License: MIT License
Google reCAPTCHA for Craft CMS 3
Home Page: https://plugins.craftcms.com/google-recaptcha
License: MIT License
The V3 library lets through much spam these days, complaints are all over the place. is there a way to implement a score with the rendered code?
Recaptcha v3 docs
A suggestion would be:
{{ craft.googleRecaptcha.render({ id: 'recaptcha-widget', score: 0.6 }) }}
Hello,
I have implemented the plugin onto a site, its looking great.
What I am trying to achieve is a way in which i can hook into the actions/controller on the f/e to submit the checkbox click via ajax call so I can get true/false as a response on the front-end.
I can see on the window object there are various available methods but wanted to know if there was a way I could extend or hook into one of them to get the above data back?
Thanks,
Mark
Would it be possible to add a Craft CMS Event to the start of the verify() method in Recaptcha.php file. This would allow developers to listen to that event and return early out of the verify method. A use case for this would be to check agains an IP whitelist, and bypass Google Recaptcha.
I would be happy to submit a pull request with the feature if required. But I just wanted to check if this feature is in line with the plugins development path.
Hi, is it planned that the plugin is updated to support Craft 5?
Hi there - we have just received the update "This plugin is no longer maintained. The developer recommends using Google reCAPTCHA instead" but the link attached to "Google reCaptcha" links back to the same plugin? Is this a mistake and it is meant to be recommending a different Craft recaptcha plugin?
Is there a way to achieve this allready?
I have some functions in the window object
window.recaptchaCallback
But this isn't working because the scripts are loaded directly after the rendered div instead of appended at the end body tags.
{{ craft.googleRecaptcha.render({'data-callback': 'window.recaptchaCallback' }) }}
The google V3 is using a timeout function of 2 minutes. This plugin doesn't support this system. If you go to a contact page, the google recaptcha is getting rendered ({{ craft.googleRecaptcha.render() }}
) But if you submit your form outside these 2 minutes, the submit will fail.
2023-09-18 07:46:01 [web.WARNING] [juban\googlerecaptcha\services\Recaptcha::verify] reCAPTCHA check failed: [ 'success' => false 'error-codes' => [ 0 => 'timeout-or-duplicate' ] ] {"memory":19187288}
But this seems to be some sort of soft failing ( [web.WARNING]
). Is there a way to fix this? This should be and web.ERROR to catch this problem for the visitor.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.