Skip to content

Commit

Permalink
Merge pull request #136 from oivoodoo/ISSUE-135
Browse files Browse the repository at this point in the history
add session.delete(skey)
  • Loading branch information
oivoodoo authored Nov 2, 2023
2 parents ec61695 + 1c7e74f commit 5d90c09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 2.7.7
1 change: 1 addition & 0 deletions app/controllers/devise/masquerades_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def cleanup_masquerade_owner_session(masqueradable_resource)

Rails.cache.delete(skey) if Devise.masquerade_storage_method_cache?

session.delete(skey)
session.delete(session_key_masqueraded_resource_class)
session.delete(session_key_masquerading_resource_class)
session.delete(session_key_masquerading_resource_guid)
Expand Down

0 comments on commit 5d90c09

Please sign in to comment.