Improve email address input on sign in

- `type='email'` on the form field
- removing `autocomplete='off'` because it’s a browser feature that
  some people find useful
This commit is contained in:
Chris Hill-Scott
2018-05-03 16:31:00 +01:00
parent 23e53a9fae
commit c0a5855d2f
2 changed files with 2 additions and 2 deletions

View File

@@ -205,7 +205,7 @@ class StripWhitespaceStringField(StringField):
class LoginForm(StripWhitespaceForm):
email_address = StringField('Email address', validators=[
email_address = EmailField('Email address', validators=[
Length(min=5, max=255),
DataRequired(message='Cant be empty'),
ValidEmail()

View File

@@ -30,7 +30,7 @@
</p>
{% endif %}
<form method="post" autocomplete="off" novalidate>
<form method="post" novalidate>
{{ textbox(form.email_address) }}
{{ textbox(form.password) }}
{{ page_footer("Continue", secondary_link=url_for('.forgot_password'), secondary_link_text="Forgot your password?") }}