devise
https://github.com/plataformatec/devise
Ruby
Flexible authentication solution for Rails with Warden.
Devise::Strategies::Rememberable#clean_up_csrf?
No need to clean up the CSRF when using rememberable. In fact, cleaning it up here would be a bug because rememberable is triggered on GET requests which means we would render a page on first access with all csrf tokens expired.
Edit
git clone [email protected]:plataformatec/devise.git
cd devise
open lib/devise/strategies/rememberable.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Devise--Strategies--Rememberable-clean_up_csrf--for-pr
# Commit to gitgit add lib/devise/strategies/rememberable.rbgit commit -m "better docs for Devise::Strategies::Rememberable#clean_up_csrf?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Devise--Strategies--Rememberable-clean_up_csrf--for-pr
hub pull-request
# Celebrate!