Fix wrong function call for auto-creating a new user
This commit is contained in:
parent
b50b10208f
commit
0e47679e9a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user