From 0e47679e9aece0bed21c3eb9ec1ede8429f99e59 Mon Sep 17 00:00:00 2001 From: Nathan Chapman Date: Mon, 24 Jul 2023 08:08:51 -0600 Subject: [PATCH] Fix wrong function call for auto-creating a new user --- accounts/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/utils.py b/accounts/utils.py index f41c16c..82a0144 100644 --- a/accounts/utils.py +++ b/accounts/utils.py @@ -22,7 +22,7 @@ def get_or_create_customer(request, shipping_address): } ) if u_created: - user.make_random_password() + user.set_unusable_password() user.save() return user