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'), +];