1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Remove need for raw session inspect

This commit is contained in:
José Valim 2014-04-03 21:00:12 +02:00
parent 6027787930
commit b786c384d5
2 changed files with 2 additions and 4 deletions

View file

@ -176,10 +176,9 @@ module Devise
# Overwrite Rails' handle unverified request to sign out all scopes,
# clear run strategies and remove cached variables.
def handle_unverified_request
sign_out_all_scopes(false)
super # call the default behaviour which resets/nullifies/raises
request.env["devise.skip_storage"] = true
expire_data_after_sign_out!
super # call the default behaviour which resets the session
sign_out_all_scopes(false)
end
def request_format

View file

@ -72,7 +72,6 @@ module Devise
def sign_out_all_scopes(lock=true)
users = Devise.mappings.keys.map { |s| warden.user(scope: s, run_callbacks: false) }
warden.raw_session.inspect
warden.logout
expire_data_after_sign_out!
warden.clear_strategies_cache!