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

Fixes CSRF error on JI password reset #4498

Merged

Conversation

zenmonkeykstop
Copy link
Contributor

Status

Ready for review

Description of Changes

Fixes #4463

Changes proposed in this pull request:
Restores CSRF hidden field in Journalist Interface password reset form, enables CSRF for functional tests to guard against future regressions.

Testing

In a staging environment:

  • Create 2 admin accounts in the JI
  • Log in with one account, go to the Admin section, and reset the password for the other account
  • reset the password for the logged-in account.

Deployment

No special requirements for deployment, will be part of app build.

Checklist

If you made changes to the server application code:

  • Linting (make lint) and tests (make -C securedrop test) pass in the development container

Copy link
Contributor

@redshiftzero redshiftzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you @zenmonkeykstop! regression coverage here looks good (just tested via removing the fix and ensuring tests fail) and I tested the fix previously in #4463

@redshiftzero redshiftzero merged commit 5d5ba25 into freedomofpress:develop Jun 3, 2019
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.

Password reset does not work due to CSRFError
2 participants