Send SSO guests to ladill.com/products/mini instead of subdomain landings.
Deploy Ladill Mini / deploy (push) Successful in 39s
Deploy Ladill Mini / deploy (push) Successful in 39s
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 <cursoragent@cursor.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\View\View;
|
||||
|
||||
class ProductLandingController extends Controller
|
||||
{
|
||||
public function show(Request $request): View|RedirectResponse
|
||||
{
|
||||
$landing = config('product_landing', []);
|
||||
$variant = (string) ($landing['landing_variant'] ?? 'default');
|
||||
$dashboardRoute = (string) ($landing['dashboard_route'] ?? 'login');
|
||||
|
||||
if ($variant === 'webmail') {
|
||||
if ($request->session()->has('mb.email')) {
|
||||
return redirect()->route($dashboardRoute);
|
||||
}
|
||||
|
||||
return view('product.landing');
|
||||
}
|
||||
|
||||
if (auth()->check()) {
|
||||
return redirect()->route($dashboardRoute);
|
||||
}
|
||||
|
||||
return view('product.landing');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user