Skip to content

Commit

Permalink
AO3-5158 Forced logout ?? (#3043)
Browse files Browse the repository at this point in the history
* I think we need this

* Remove comments
  • Loading branch information
zz9pzza authored and elzj committed Sep 10, 2017
1 parent 4e67b89 commit 649c1b0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,7 @@ def ensure_admin_credentials
# So if there is not a user_credentials cookie and the user appears to be logged in then
# redirect to the logout page

# before_action :logout_if_not_user_credentials
# this was disabled when we found issues:
# https://github.com/nbudin/devise_openid_authenticatable/issues/21
# https://github.com/binarylogic/authlogic/issues/532
#
# We will look back in to this back once we have devises.
# if we believe the caching is worth the extra support tickets.
#
before_action :logout_if_not_user_credentials

def logout_if_not_user_credentials
if logged_in? && cookies[:user_credentials].nil? && controller_name != "user_sessions"
Expand Down

0 comments on commit 649c1b0

Please sign in to comment.