Add shopper password reset and extend demo seed for accounts, reviews, and tracking.
CI / test (pull_request) Successful in 39s

Buyers can recover locked accounts, and seed_demo now walks the shopper path without live Stripe or EasyPost calls.
This commit is contained in:
2026-09-07 06:50:40 -05:00
parent c9b81ceed7
commit 03950fc9ba
15 changed files with 466 additions and 27 deletions
+5 -1
View File
@@ -19,5 +19,9 @@ class PortalStaffMiddleware:
and getattr(user, "is_authenticated", False)
and not getattr(user, "is_staff", False)
):
return redirect("account:home")
from django.apps import apps
if apps.is_installed("shop"):
return redirect("account:home")
return redirect("public:home")
return self.get_response(request)