mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-13 01:44:08 -04:00
We added an extra, hidden, <input> to our /sign-in
and /register forms to stop Chrome's form
heuristics filling the fields in wrong.
See the commit that added it:
33b15cdec6
This removes it after testing with the following
Chrome/OS combinations and all working without the
hack:
- Chrome 87, Windows 7
- Chrome 86, Windows 7
- Chrome 86, Windows 10
- Chrome 85, Windows 7
- Chrome 80, Windows 10
- Chrome 81, Windows 7
- Chrome 52, Windows 7
- Chrome 68, Windows 7
- Chrome 78, Windows 8.1
- Chrome 86, Windows 8.1
These combinations were based on the most-used
versions recorded in our analytics for the last 3
months.
38 lines
1.3 KiB
HTML
38 lines
1.3 KiB
HTML
{% extends "withoutnav_template.html" %}
|
||
{% from "components/page-footer.html" import page_footer %}
|
||
{% from "components/form.html" import form_wrapper %}
|
||
|
||
{% block per_page_title %}
|
||
Create an account
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
<div class="govuk-grid-row">
|
||
<div class="govuk-grid-column-two-thirds">
|
||
<h1 class="heading-large">Create an account</h1>
|
||
{% call form_wrapper(autocomplete=True) %}
|
||
{{ form.name(param_extensions={"classes": "govuk-!-width-three-quarters"}) }}
|
||
{{ form.email_address(
|
||
param_extensions={
|
||
"hint": {"text": "Must be from a public sector organisation"},
|
||
"classes": "govuk-!-width-three-quarters",
|
||
"autocomplete": "email"
|
||
},
|
||
error_message_with_html=True
|
||
) }}
|
||
<div class="extra-tracking">
|
||
{{ form.mobile_number(param_extensions={
|
||
"hint": {"text": "We’ll send you a security code by text message"},
|
||
"classes": "govuk-!-width-three-quarters"
|
||
}) }}
|
||
</div>
|
||
{{ form.password(param_extensions={"hint": {"text": "At least 8 characters"}, "classes": "govuk-!-width-three-quarters", "autocomplete": "new-password"}) }}
|
||
{{form.auth_type}}
|
||
{{ page_footer("Continue") }}
|
||
{% endcall %}
|
||
</div>
|
||
</div>
|
||
|
||
{% endblock %}
|