Restore silent SSO on app entry for users switching between apps.
Deploy Ladill Hosting / deploy (push) Successful in 31s
Deploy Ladill Hosting / deploy (push) Successful in 31s
Guests without a local session try prompt=none SSO first; marketing pages are only for visitors with no platform session (localhost fix retained). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+4
-3
@@ -14,13 +14,14 @@ use App\Http\Controllers\Hosting\TeamController;
|
||||
use App\Http\Controllers\NotificationController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('/', fn () => auth()->check()
|
||||
? redirect()->route('hosting.dashboard')
|
||||
: redirect()->route('sso.connect'))->name('hosting.root');
|
||||
|
||||
$serversApp = fn (string $path = ''): string => 'https://'.config('app.servers_domain').($path !== '' ? '/'.ltrim($path, '/') : '');
|
||||
|
||||
// Ladill Hosting — authenticated app for buying + managing hosting (hosting.ladill.com).
|
||||
|
||||
Route::get('/', fn () => auth()->check()
|
||||
? redirect()->route('hosting.dashboard')
|
||||
: redirect()->away((string) config('ladill.marketing_url')))->name('hosting.root');
|
||||
|
||||
Route::get('/login', [SsoLoginController::class, 'connect'])->name('login');
|
||||
Route::get('/sso/connect', [SsoLoginController::class, 'connect'])->name('sso.connect');
|
||||
|
||||
Reference in New Issue
Block a user