From d11e0fb29a930edf366af189ec48a50241cfb46d Mon Sep 17 00:00:00 2001 From: "M. Tayyab Tahir Qureshi" <109274085+ttqureshi@users.noreply.github.com> Date: Wed, 4 Sep 2024 17:52:05 +0500 Subject: [PATCH] Update views.py --- eCommercePlatform/users/views.py | 1 - 1 file changed, 1 deletion(-) diff --git a/eCommercePlatform/users/views.py b/eCommercePlatform/users/views.py index 068dea9..0733e34 100644 --- a/eCommercePlatform/users/views.py +++ b/eCommercePlatform/users/views.py @@ -27,7 +27,6 @@ def post(self, request): if form.is_valid(): user = form.save() login(request, user, backend="django.contrib.auth.backends.ModelBackend") - token = generate_jwt(user.id) cart = Cart(user=request.user) cart.save() return redirect("products:products-listing")