Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Provide credentials from cleaned_data
Mira Szewczyke35b1792733c
diff --git a/saleor/order/views.py b/saleor/order/views.pyindex c014a4d28a..24328ee1ef 100644--- a/saleor/order/views.py+++ b/saleor/order/views.py@@ -142,7 +142,7 @@ def create_password(request, token):login_form = Noneif register_form.is_valid():register_form.save()- password = form_data.get('password')+ password = register_form.cleaned_data.get('password')user = auth.authenticate(email=email, password=password)auth.login(request, user)attach_order_to_user(order, user)diff --git a/saleor/registration/views.py b/saleor/registration/views.pyindex e879eb5e45..265681ccde 100644--- a/saleor/registration/views.py+++ b/saleor/registration/views.py@@ -28,8 +28,8 @@ def signup(request):form = SignupForm(request.POST or None)if form.is_valid():form.save()- password = request.POST.get('password')- email = request.POST.get('email')+ password = form.cleaned_data.get('password')+ email = form.cleaned_data.get('email')user = auth.authenticate(email=email, password=password)if user:auth.login(request, user)