From aade84b4644413ac6babb4650e1e448c668400d9 Mon Sep 17 00:00:00 2001 From: Anish Reddy <2anishreddy@gmail.com> Date: Mon, 9 Oct 2023 12:12:46 -0500 Subject: [PATCH] Use reCaptchaV3 so users don't have to use checkbox (#427) * Use reCaptchaV3 so users don't have to use checkbox * black formatting on djangoRT/forms.py --- djangoRT/forms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/djangoRT/forms.py b/djangoRT/forms.py index 678e510e..f00ae9f4 100644 --- a/djangoRT/forms.py +++ b/djangoRT/forms.py @@ -1,6 +1,6 @@ import logging -from captcha.fields import ReCaptchaField, ReCaptchaV2Checkbox +from captcha.fields import ReCaptchaField, ReCaptchaV3 from django import forms from django.core.validators import validate_email @@ -120,7 +120,8 @@ class TicketGuestForm(BaseTicketForm): Adds a CAPTCHA to reduce spam submissions. """ - captcha = ReCaptchaField(widget=ReCaptchaV2Checkbox) + # label="" to not show the "Captcha" label in webpage + captcha = ReCaptchaField(widget=ReCaptchaV3, label="") class ReplyForm(forms.Form):