Skip to content

Commit

Permalink
Use reCaptchaV3 so users don't have to use checkbox (#427)
Browse files Browse the repository at this point in the history
* Use reCaptchaV3 so users don't have to use checkbox

* black formatting on djangoRT/forms.py
  • Loading branch information
AnishReddyRavula authored Oct 9, 2023
1 parent acc731a commit aade84b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions djangoRT/forms.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit aade84b

Please sign in to comment.