Reseed Care demo tenants after each SSO login.
Deploy Ladill Care / deploy (push) Successful in 2m38s

Demo Free/Pro/Enterprise accounts wipe and reload sample clinic data on
authorization-code SSO callbacks so every sales walkthrough starts clean.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-17 11:17:16 +00:00
co-authored by Cursor
parent 62d42d9157
commit 679577a7b3
5 changed files with 184 additions and 0 deletions
@@ -121,6 +121,7 @@ class SsoLoginController extends Controller
$request->session()->forget('sso.attempts');
app(TeamMemberProvisioner::class)->sync($user);
app(\App\Services\Care\DemoLoginReseeder::class)->maybeResetAfterLogin($user);
return $this->finishCallback($request, $intended, null, app(IdentityTeamClient::class));
}