-
Notifications
You must be signed in to change notification settings - Fork 16
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
no new token generated for each requests #5
Comments
Makes sense. Good catch! Feel free to submit a PR and I'll approve/merge. |
Done, here the PR: #6 |
But whats about if i have three forms opened at the same time and i one of them get submitted ? The token is consumed by the first submitted form but whats about the two other forms with the same token they are invalid afterwards. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a request is submitted and validated the same token is used for new requests.
I've changed line 72 which was originally only returning a boolean and I'm generating a new token if the original one is consumed:
The text was updated successfully, but these errors were encountered: