[28579] Ensure resetting the session before forwarding to login

This might just fix the following issue since the cookie will be deleted
and reset.

https://community.openproject.com/wp/28579
pull/6726/head
Oliver Günther 6 years ago
parent 2f37673c3f
commit b9c065505a
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 4
      app/controllers/application_controller.rb

@ -245,6 +245,10 @@ class ApplicationController < ActionController::Base
def require_login
unless User.current.logged?
# Ensure we reset the session to terminate any old session objects
reset_session
respond_to do |format|
format.any(:html, :atom) do redirect_to signin_path(back_url: login_back_url) end

Loading…
Cancel
Save