Skip to content

Commit

Permalink
AO3-5023 Comment out force logout (#2948)
Browse files Browse the repository at this point in the history
  • Loading branch information
zz9pzza authored and sarken committed Jun 23, 2017
1 parent 5639810 commit 8bd0a36
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@ 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_filter :logout_if_not_user_credentials
# before_filter :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.
#
def logout_if_not_user_credentials
if logged_in? && cookies[:user_credentials].nil? && controller_name != "user_sessions"
logger.error "Forcing logout"
Expand Down

0 comments on commit 8bd0a36

Please sign in to comment.