Skip to content

Commit aac92a9

Browse files
authored
Remove help_text from email field and add autocomplete attr
1 parent ae5df9d commit aac92a9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

password_policies/forms/__init__.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,12 @@ class PasswordResetForm(forms.Form):
193193
"address cannot reset the password."
194194
),
195195
}
196-
# TODO: Help text?
197-
email = forms.EmailField(label=_("E-mail"), max_length=75, help_text="help")
196+
197+
email = forms.EmailField(
198+
label=_("E-mail"),
199+
max_length=75,
200+
widget=forms.EmailInput(attrs={"autocomplete": "email"}),
201+
)
198202

199203
def clean_email(self):
200204
"""

0 commit comments

Comments
 (0)