Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid token after captcha fail #1018

Open
ZhooL opened this issue Dec 2, 2024 · 6 comments
Open

Invalid token after captcha fail #1018

ZhooL opened this issue Dec 2, 2024 · 6 comments
Assignees
Labels
Milestone

Comments

@ZhooL
Copy link

ZhooL commented Dec 2, 2024

If you did not solve the captcha (InternalCaptcha) correctly, on the next try/submit we get the "Invalid token" message displayed. Workaround: open page from scratch and solve captcha on first try. We're on smarty4.5.5.

@davidcoutadeur
Copy link

Hello @ZhooL

I could not reproduce your bug. Could you give more details? Especially: on which page are you when you have this error?

@ZhooL
Copy link
Author

ZhooL commented Dec 2, 2024

Sure, it's on the sendtoken ($default_action = "sendtoken";) page

Preparation with wrong captcha solution:
image

1st submit result with wrong captcha:
image

2nd submit result with correct captcha:
image

@davidcoutadeur
Copy link

Ok, thanks for the report.

Indeed, it seems to be a bug. The token should be regenerated when there are errors on first page.

Regards

@davidcoutadeur davidcoutadeur self-assigned this Dec 2, 2024
@davidcoutadeur davidcoutadeur added this to the 1.7.2 milestone Dec 2, 2024
@cp61
Copy link

cp61 commented Jan 3, 2025

Hello David

Can you tell me how to fix this problem while waiting for 1.7.2 ?

Regards

@davidcoutadeur
Copy link

Hello,

There is no workaround for now, except by restarting at step 1. I'll be working on this on next week, and I'll link this issue to a pull request when I'll have the final fix.

Regards,

@cp61
Copy link

cp61 commented Jan 3, 2025

Thanks David .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants