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

fixed bug where csrf_token was not recognized for register json api #926

Merged
merged 2 commits into from
Feb 17, 2024

Conversation

lilz-egoto
Copy link
Contributor

#925 Fixed a bug where the json register api was returning 400 "CSRF Token is missing" even though the CSRF token was added as a header.

The fix was adding @unauth_csrf(fall_through=True) annotation to the register view. Wrote a test for the bug fix as well.

Copy link

codecov bot commented Feb 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a71666e) 98.44% compared to head (c37d5e8) 98.44%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #926   +/-   ##
=======================================
  Coverage   98.44%   98.44%           
=======================================
  Files          35       35           
  Lines        4493     4494    +1     
=======================================
+ Hits         4423     4424    +1     
  Misses         70       70           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jwag956 jwag956 merged commit 6d6c15a into pallets-eco:master Feb 17, 2024
19 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants