From ab72abea0a11e215d41ef73cc27d506243cb9fc8 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Tue, 10 Jun 2025 12:54:25 +0200 Subject: [PATCH] [A11y] add autocomplete to customer forms email input (#5214) --- src/pretix/presale/forms/customer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pretix/presale/forms/customer.py b/src/pretix/presale/forms/customer.py index 825892bea..9d188dd64 100644 --- a/src/pretix/presale/forms/customer.py +++ b/src/pretix/presale/forms/customer.py @@ -55,7 +55,7 @@ class AuthenticationForm(forms.Form): required_css_class = 'required' email = forms.EmailField( label=_("Email"), - widget=forms.EmailInput() + widget=forms.EmailInput(attrs={'autocomplete': 'email'}) ) password = forms.CharField( label=_("Password"), @@ -140,6 +140,7 @@ class RegistrationForm(forms.Form): name_parts = forms.CharField() email = forms.EmailField( label=_("Email"), + widget=forms.EmailInput(attrs={'autocomplete': 'email'}) ) error_messages = {