0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 07:43:18 -05:00

Improve 2FA autofill (#16473)

This improves the autofill suggestion on mobile devices and some password managers
This commit is contained in:
Jonathan Herlin 2021-07-18 02:06:22 +02:00 committed by GitHub
parent ec357833bc
commit fd3f149abd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@
{{template "base/alert" .}} {{template "base/alert" .}}
<div class="required inline field"> <div class="required inline field">
<label for="passcode">{{.i18n.Tr "passcode"}}</label> <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>
<div class="inline field"> <div class="inline field">