Skip identity redirect when Care session already exists on SSO connect.
Deploy Ladill Care / deploy (push) Successful in 42s
Deploy Ladill Care / deploy (push) Successful in 42s
Honors the intended URL for signed-in users instead of calling post-auth-redirect, which returned /sso/connect again. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -33,9 +33,7 @@ class SsoLoginController extends Controller
|
||||
$intended = (string) $request->query('redirect', route('care.dashboard'));
|
||||
|
||||
if (Auth::check()) {
|
||||
$redirect = $this->resolveLanding($identity, $request->user(), $intended);
|
||||
|
||||
return $this->safeRedirect($redirect, route('care.dashboard'));
|
||||
return $this->safeRedirect($intended, route('care.dashboard'));
|
||||
}
|
||||
|
||||
if (! $request->boolean('fallback')) {
|
||||
|
||||
Reference in New Issue
Block a user