Sha256: 3b5ff29fdf554d55348ea006aa80bf747a5c9410d7a516f00e13af7269abbf84

Contents?: true

Size: 347 Bytes

Versions: 29

Compression:

Stored size: 347 Bytes

Contents

Warden::Manager.after_authentication do |record, warden, options|
  clean_up_for_winning_strategy = !warden.winning_strategy.respond_to?(:clean_up_csrf?) ||
    warden.winning_strategy.clean_up_csrf?
  if Devise.clean_up_csrf_token_on_authentication && clean_up_for_winning_strategy
    warden.request.session.try(:delete, :_csrf_token)
  end
end

Version data entries

29 entries across 29 versions & 6 rubygems

Version Path
devise-4.3.0 lib/devise/hooks/csrf_cleaner.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/devise-4.2.1/lib/devise/hooks/csrf_cleaner.rb
devise-4.2.1 lib/devise/hooks/csrf_cleaner.rb
devise-4.2.0 lib/devise/hooks/csrf_cleaner.rb
devise-3.5.10 lib/devise/hooks/csrf_cleaner.rb
devise-4.0.3 lib/devise/hooks/csrf_cleaner.rb
devise-4.1.1 lib/devise/hooks/csrf_cleaner.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/devise-4.1.0/lib/devise/hooks/csrf_cleaner.rb
devise-4.1.0 lib/devise/hooks/csrf_cleaner.rb
devise-3.5.9 lib/devise/hooks/csrf_cleaner.rb
devise-4.0.2 lib/devise/hooks/csrf_cleaner.rb
devise-4.0.1 lib/devise/hooks/csrf_cleaner.rb
devise-3.5.8 lib/devise/hooks/csrf_cleaner.rb
devise-3.5.7 lib/devise/hooks/csrf_cleaner.rb
devise-4.0.0 lib/devise/hooks/csrf_cleaner.rb
devise-4.0.0.rc2 lib/devise/hooks/csrf_cleaner.rb
devise-4.0.0.rc1 lib/devise/hooks/csrf_cleaner.rb
devise-3.5.6 lib/devise/hooks/csrf_cleaner.rb
devise-3.5.5 lib/devise/hooks/csrf_cleaner.rb
devise-3.5.4 lib/devise/hooks/csrf_cleaner.rb