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.

Source | Google | Stack overflow

Edit

git clone [email protected]:plataformatec/devise.git

cd devise

open lib/devise/strategies/rememberable.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Devise--Strategies--Rememberable-clean_up_csrf--for-pr


# Commit to git

git add lib/devise/strategies/rememberable.rbgit commit -m "better docs for Devise::Strategies::Rememberable#clean_up_csrf?"


# Open pull request

gem 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!