From c4e2c753242185c73c7c16e80339cb78b7296b61 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Fri, 12 Jun 2026 22:22:28 +0000 Subject: [PATCH] Send SSO guests to ladill.com/products/qrplus instead of subdomain landings. Remove interactive OAuth fallback on silent SSO failure and add ladill.marketing_url config so app subdomains open the dashboard when signed in locally. Co-authored-by: Cursor --- app/Http/Controllers/Auth/SsoLoginController.php | 5 +---- config/ladill.php | 6 ++++++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 config/ladill.php diff --git a/app/Http/Controllers/Auth/SsoLoginController.php b/app/Http/Controllers/Auth/SsoLoginController.php index 83072a8..f3776c0 100644 --- a/app/Http/Controllers/Auth/SsoLoginController.php +++ b/app/Http/Controllers/Auth/SsoLoginController.php @@ -88,10 +88,7 @@ class SsoLoginController extends Controller if ($request->filled('error')) { if (in_array($request->query('error'), ['login_required', 'interaction_required', 'consent_required'], true) && ! $request->boolean('interactive')) { - return redirect()->route('sso.connect', [ - 'redirect' => $intended, - 'interactive' => 1, - ]); + return redirect()->away((string) config('ladill.marketing_url')); } return $this->finishCallback($request, $intended, (string) $request->query('error_description', $request->query('error')), $popup); diff --git a/config/ladill.php b/config/ladill.php new file mode 100644 index 0000000..c9e5729 --- /dev/null +++ b/config/ladill.php @@ -0,0 +1,6 @@ + 'qrplus', + 'marketing_url' => env('LADILL_MARKETING_URL', 'https://localhost/products/qrplus'), +];