lib/devise/controllers/helpers.rb in loyal_devise-2.1.5 vs lib/devise/controllers/helpers.rb in loyal_devise-2.1.6
- old
+ new
@@ -270,10 +270,10 @@
end
# Overwrite Rails' handle unverified request to sign out all scopes,
# clear run strategies and remove cached variables.
def handle_unverified_request
- if signed_in?
+ if sign_in?
sign_out_all_scopes(false)
request.env["devise.skip_storage"] = true
expire_devise_cached_variables!
end