]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1213033 - please make the MFA code field type=numeric
authorByron Jones <glob@mozilla.com>
Fri, 9 Oct 2015 03:59:46 +0000 (11:59 +0800)
committerByron Jones <glob@mozilla.com>
Fri, 9 Oct 2015 03:59:46 +0000 (11:59 +0800)
template/en/default/mfa/totp/verify.html.tmpl

index 7314d909a5be74f14b71338a6971184d11c55ae9..9b0dd5013634eaaf6e10809a59abd47acee7b15f 100644 (file)
@@ -22,7 +22,7 @@
     [% FOREACH field IN postback.fields.keys %]
       <input type="hidden" name="[% field FILTER html %]" value="[% postback.fields.item(field) FILTER html %]">
     [% END %]
-    <input type="text" name="code" id="code"
+    <input type="[% is_mobile_browser ? "number" : "text" %]" name="code" id="code"
            placeholder="123456" maxlength="9" pattern="\d{6,9}" size="10"
            autocomplete="off" required autofocus><br>
     <br>