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

Demo Free/Pro/Enterprise accounts wipe and reload sample 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:19:21 +00:00
co-authored by Cursor
parent 0bdf435328
commit 9707b47cdd
5 changed files with 192 additions and 0 deletions
@@ -123,6 +123,7 @@ class SsoLoginController extends Controller
$request->session()->forget('sso.attempts');
app(TeamMemberProvisioner::class)->sync($user);
app(\App\Services\Frontdesk\DemoLoginReseeder::class)->maybeResetAfterLogin($user);
return $this->finishCallback($request, $intended, null, app(IdentityTeamClient::class));
}