Merge pull request #2068 from alphagov/2fa-input

Improve 2fa code input
This commit is contained in:
Chris Hill-Scott
2018-05-08 16:53:54 +01:00
committed by GitHub
6 changed files with 97 additions and 94 deletions

View File

@@ -15,7 +15,7 @@
<p>Weve sent you a text message with a security code.</p>
<form autocomplete="off" method="post" class="extra-tracking">
<form autocomplete="off" method="post" class="extra-tracking" novalidate>
{{ textbox(
form.sms_code,
width='5em',

View File

@@ -15,8 +15,12 @@
<p>
Weve sent a security code to your new {{ thing }}.
</p>
<form method="post">
{{ textbox(form_field) }}
<form method="post" autocomplete="off" novalidate>
{{ textbox(
form_field,
width='5em',
autofocus=True
) }}
{{ page_footer(
'Confirm',
destructive=destructive,