Skip to content

Commit

Permalink
Merge pull request #10303 from DFE-Digital/cv/fix-one-login-sandbox
Browse files Browse the repository at this point in the history
Fix sandbox page redirect
  • Loading branch information
CatalinVoineag authored Jan 24, 2025
2 parents 00c172e + ea93630 commit a8517a0
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions app/controllers/concerns/authentication.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,20 @@ def require_authentication
end

def resume_session
if !one_login_enabled?
terminate_session
return nil
end

session = Current.session ||= find_session_by_cookie
session.touch if session.present?
session

if session.present?
session.touch
session
else
terminate_session
nil
end
end

def find_session_by_cookie
Expand Down

0 comments on commit a8517a0

Please sign in to comment.