Skip to content

How to check if recaptcha passed in ajax? #260

Answered by AltusBarry
engin-can asked this question in Q&A
Discussion options

You must be logged in to vote

Hey. You can take a peek at our invisible implementation for some pointers: https://github.com/praekelt/django-recaptcha/blob/develop/captcha/templates/captcha/includes/js_v2_invisible.html

Then you'd want to override the includes/js_v2_checkbox.html template with a custom implementation for your project. To override the templates check out the django docs on template overrides: https://docs.djangoproject.com/en/2.2/howto/overriding-templates/

The onSubmit_{{ uuid }} methods you see is our default for the Google reCAPTCHA data attr data-callback. For more info on what to expect with the callback method, look at the Documentation for reCAPTCHA v2 : https://developers.google.com/recaptcha/d…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by thibaudcolas
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #190 on January 26, 2022 22:02.