mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Do not clean up CSRF on rememberable
This commit is contained in:
parent
ac4a89a511
commit
1f3638aaa5
1 changed files with 9 additions and 0 deletions
|
@ -32,6 +32,15 @@ module Devise
|
|||
end
|
||||
end
|
||||
|
||||
# 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.
|
||||
def clean_up_csrf?
|
||||
false
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def extend_remember_me_period(resource)
|
||||
|
|
Loading…
Add table
Reference in a new issue