Fix guest entry: correct marketing URL and stop auto silent SSO.
Deploy Ladill Mini / deploy (push) Successful in 37s
Deploy Ladill Mini / deploy (push) Successful in 37s
Correct localhost marketing_url default and stop redirecting guests through /sso/connect on visit; SSO starts only via explicit sign-in. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-1
@@ -2,5 +2,5 @@
|
||||
|
||||
return [
|
||||
'product_slug' => 'mini',
|
||||
'marketing_url' => env('LADILL_MARKETING_URL', 'https://localhost/products/mini'),
|
||||
'marketing_url' => env('LADILL_MARKETING_URL', 'https://ladill.com/products/mini'),
|
||||
];
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('/', fn () => auth()->check()
|
||||
? redirect()->route('mini.dashboard')
|
||||
: redirect()->route('sso.connect'))->name('mini.root');
|
||||
: redirect()->away((string) config('ladill.marketing_url')))->name('mini.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