Reseed demo tenants after each SSO login.
Deploy Ladill POS / deploy (push) Successful in 1m34s

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:20:18 +00:00
co-authored by Cursor
parent ff098c0a29
commit 4d49336f96
5 changed files with 188 additions and 0 deletions
@@ -124,6 +124,8 @@ class SsoLoginController extends Controller
Auth::login($user, remember: true);
$request->session()->regenerate();
app(\App\Services\Pos\DemoLoginReseeder::class)->maybeResetAfterLogin($user);
return $this->finishCallback($request, $intended, null, $popup);
}