mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 08:44:23 -04:00
Merge pull request #2065 from alphagov/email-complete-sign-in
Improve email address input on sign in
This commit is contained in:
@@ -209,7 +209,7 @@ class StripWhitespaceStringField(StringField):
|
|||||||
|
|
||||||
|
|
||||||
class LoginForm(StripWhitespaceForm):
|
class LoginForm(StripWhitespaceForm):
|
||||||
email_address = StringField('Email address', validators=[
|
email_address = EmailField('Email address', validators=[
|
||||||
Length(min=5, max=255),
|
Length(min=5, max=255),
|
||||||
DataRequired(message='Can’t be empty'),
|
DataRequired(message='Can’t be empty'),
|
||||||
ValidEmail()
|
ValidEmail()
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<form method="post" autocomplete="off" novalidate>
|
<form method="post" novalidate>
|
||||||
{{ textbox(form.email_address) }}
|
{{ textbox(form.email_address) }}
|
||||||
{{ textbox(form.password) }}
|
{{ textbox(form.password) }}
|
||||||
{{ page_footer("Continue", secondary_link=url_for('.forgot_password'), secondary_link_text="Forgot your password?") }}
|
{{ page_footer("Continue", secondary_link=url_for('.forgot_password'), secondary_link_text="Forgot your password?") }}
|
||||||
|
|||||||
Reference in New Issue
Block a user