aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorJonathan Herlin <Jonte@jherlin.se>2021-07-18 02:06:22 +0200
committerGitHub <noreply@github.com>2021-07-18 02:06:22 +0200
commitfd3f149abdb98339b383027a51a47fc9021635bc (patch)
tree8a5f174fe6803a3f4ab772b194557689006a70d0 /templates/user
parentec357833bcfc90860331f956a811ecbf45df47aa (diff)
downloadgitea-fd3f149abdb98339b383027a51a47fc9021635bc.tar.gz
gitea-fd3f149abdb98339b383027a51a47fc9021635bc.zip
Improve 2FA autofill (#16473)
This improves the autofill suggestion on mobile devices and some password managers
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/auth/twofa.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/auth/twofa.tmpl b/templates/user/auth/twofa.tmpl
index 68b474c866..a9ed66c431 100644
--- a/templates/user/auth/twofa.tmpl
+++ b/templates/user/auth/twofa.tmpl
@@ -11,7 +11,7 @@
{{template "base/alert" .}}
<div class="required inline field">
<label for="passcode">{{.i18n.Tr "passcode"}}</label>
- <input id="passcode" name="passcode" type="number" autocomplete="off" autofocus required>
+ <input id="passcode" name="passcode" type="text" autocomplete="one-time-code" inputmode="numeric" pattern="[0-9]*" autofocus required>
</div>
<div class="inline field">