Skip to content

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

Open
SoheilJafari wants to merge 4 commits intokbytesys:masterfrom
SoheilJafari:master
Open

fix(recaptcha): extract token from first list item in clean()#25
SoheilJafari wants to merge 4 commits intokbytesys:masterfrom
SoheilJafari:master

Conversation

@SoheilJafari
Copy link
Copy Markdown

@SoheilJafari SoheilJafari commented Aug 13, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant