-
After setting foms.py like "captcha = ReCaptchaField(widget=ReCaptchaV3)" |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @bluebamus, you don't have to write any validation logic for the token. You only have to call Upon form submission, Django Recaptcha will look at the the token/field value and use it to check if your form was submitted by a bot. If it is a bot, a validation error will be raised for your ReCaptchaField. Hope this answers your question. Let me know! |
Beta Was this translation helpful? Give feedback.
Hi @bluebamus, you don't have to write any validation logic for the token. You only have to call
is_valid()
orfull_clean()
on your form, Django Recaptcha will do the heavy lifting for you!Upon form submission, Django Recaptcha will look at the the token/field value and use it to check if your form was submitted by a bot. If it is a bot, a validation error will be raised for your ReCaptchaField.
Hope this answers your question. Let me know!