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 functions to yesod-test to support the new CSRF middleware #1058

Merged
merged 1 commit into from
Aug 21, 2015

Conversation

MaxGabriel
Copy link
Member

This PR adds functions to add CSRF tokens from cookies, supporting the new CSRF middleware added in #1017.

@MaxGabriel
Copy link
Member Author

@snoyberg or @gregwebs Can you upload yesod-core-1.4.14 to Hackage so that yesod-test can depend on it?

@@ -93,6 +95,7 @@ module Yesod.Test
-- * Grab information
, getTestYesod
, getResponse
, getRequestCookies
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't know the best spot for this function, either in the export list or in the source code.

Copy link
Member

Choose a reason for hiding this comment

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

looks fine to me

@snoyberg
Copy link
Member

Uploaded

@gregwebs
Copy link
Member

Thanks for handling this issue from every angle :) Testing is often forgotten about

gregwebs added a commit that referenced this pull request Aug 21, 2015
Add functions to yesod-test to support the new CSRF middleware
@gregwebs gregwebs merged commit 6d15e7c into yesodweb:master Aug 21, 2015
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.

None yet

3 participants