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

Add CsrfForm implementation #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

the10thWiz
Copy link

This PR adds a CsrfForm, which is equivalent to rocket::form::Form, except it verifies the presence and correctness of a CSRF token, in a field named csrf_token. At this point, it's not possible to configure the name of the field (this might require some re-work on the Rocket side of things), although tokio task-local state could also solve this problem.

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