@ -42,7 +42,7 @@ def authenticate_customer(request):
return JsonResponse({'success': False, 'error': 'User with this email does not exist'})
user = authenticate(request, username=email, password=password)
login(request, user)
if user is not None:
# Login the user