Merge pull request #6726 from opf/fix/28579/reset-session-before-login

[28579] Ensure resetting the session before forwarding to login
pull/6730/head
Markus Kahl 6 years ago committed by GitHub
commit bcc006ec29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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