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

ActionController::InvalidAuthenticityToken in SubmittersController#create #249

Closed
Janell-Huyck opened this issue Oct 14, 2023 · 0 comments · Fixed by #261
Closed

ActionController::InvalidAuthenticityToken in SubmittersController#create #249

Janell-Huyck opened this issue Oct 14, 2023 · 0 comments · Fixed by #261
Assignees
Labels
bug Something isn't working Security

Comments

@Janell-Huyck
Copy link
Contributor

Janell-Huyck commented Oct 14, 2023

The app crashes upon creating new submitter after logging out and using back arrows to get to submitter creation page. Reproducible

Steps to recreate:

  1. start the app at localhost:3000
  2. create a submitter, hit submit
  3. create a work
  4. click "I'm finished"
  5. use the back arrows to navigate back to the page where you created your submitter
  6. notice that the form is pre-filled with your old information.
  7. click "submit" on the submitter creation page where your old information shows
  8. App crashes:

Screenshot 2023-10-13 at 9 27 25 PM

The same process and results happen with the admin login.

I suggest using begin/rescue blocks to gracefully handle this and redirect the user to a fresh login page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Security
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants