Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sandbox page redirect #10303

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading