-
Notifications
You must be signed in to change notification settings - Fork 229
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
Remove form_authenticity_token method #371
Remove form_authenticity_token method #371
Conversation
Fix Sorcery#330 As detailed in the URL below, the call to `form_authenticity_token` wasn't useful and was causing issues like Sorcery#330, so remove it. ref: - Sorcery#357 (comment) - Sorcery#357 (comment)
Why wasn't is useful? Can you elaborate? What about including the module as described in #330 (comment)? |
@Spone to invert the question, what is the purpose of calling My assumption would be that it's to generate the csrf token in a scenario where rails wouldn't already do so, but that seems like it might be a legacy issue that is no longer relevant. |
Apparently it was added in 8a7490c in order to add I agree that if the behavior is not fully understood, and that removing the line does not break any test, and furthermore helps solve a current issue, we should do it. |
As I mentioned here, I don't have enough information from this PR to be certain, but I believe form_authenticity_token was added in an attempt to solve this issue. My guess is that it was meant to maintain |
I have resolved the conflict in CHANGELOG.md |
Fix #330
As detailed in the URL below, the call to
form_authenticity_token
wasn't useful and was causing issues like #330, so remove it.ref: