From d0dcb6dfa811fbdd9d3fc263bfc2914851563a7f Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Fri, 20 Jun 2025 17:14:58 -0400 Subject: [PATCH] Redirect unauthenticated users to Launchpad --- app/controllers/concerns/authentication.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/controllers/concerns/authentication.rb b/app/controllers/concerns/authentication.rb index dc75fb777..dc3ee7bb7 100644 --- a/app/controllers/concerns/authentication.rb +++ b/app/controllers/concerns/authentication.rb @@ -48,10 +48,11 @@ module Authentication def request_authentication session[:return_to_after_authenticating] = request.url - # # When we're ready to flip the switch to Launchpad authentication, uncomment this line: - # redirect_to Launchpad.login_url(account: Current.account), allow_other_host: true - - redirect_to new_session_path + if Rails.application.config.x.local_authentication + redirect_to new_session_path + else + redirect_to Launchpad.login_url(account: Current.account), allow_other_host: true + end end def after_authentication_url