From 03de0d5d2e7c0fb584c45d104db6c0f095180abe Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 29 Oct 2021 17:23:26 +0200 Subject: [PATCH] Do not ask authenticated customers to re-type their email address --- src/pretix/presale/checkoutflow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pretix/presale/checkoutflow.py b/src/pretix/presale/checkoutflow.py index 7e9a1ff9f7..39af995344 100644 --- a/src/pretix/presale/checkoutflow.py +++ b/src/pretix/presale/checkoutflow.py @@ -705,6 +705,7 @@ class QuestionsStep(QuestionsViewMixin, CartMixin, TemplateFlowStep): }) if self.cart_customer: initial['email'] = self.cart_customer.email + initial['email_repeat'] = self.cart_customer.email f = ContactForm(data=self.request.POST if self.request.method == "POST" else None, event=self.request.event, @@ -712,6 +713,7 @@ class QuestionsStep(QuestionsViewMixin, CartMixin, TemplateFlowStep): initial=initial, all_optional=self.all_optional) if wd.get('email', '') and wd.get('fix', '') == "true" or self.cart_customer: f.fields['email'].disabled = True + f.fields['email_repeat'].disabled = True for overrides in override_sets: for fname, val in overrides.items():