Git Product home page Git Product logo

craft-google-recaptcha's People

Contributors

juban avatar liam-spedding avatar simplonreunion avatar

Stargazers

 avatar  avatar

Watchers

 avatar

craft-google-recaptcha's Issues

Using client-side js to validate the submission

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

Feature Request: Add Craft Event to beginning of verify() method in Recaptcha.php

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.

Appending scripts to end body tags with .render()

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' }) }}

Using V3 is faulty

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.