django-recaptcha3 icon indicating copy to clipboard operation
django-recaptcha3 copied to clipboard

fix(recaptcha): extract token from first list item in clean()

Open SoheilJafari opened this issue 3 months ago • 0 comments

fix(forms): use first value for reCAPTCHA token

The widget can submit g-recaptcha-response as a one-item list. Passing the list string to CharField.clean() caused Google /siteverify to return "invalid-input-response". We now read values[0] and handle str/list safely.

SoheilJafari avatar Aug 13 '25 22:08 SoheilJafari