Skip to content

Commit

Permalink
Improve 2FA autofill (go-gitea#16473)
Browse files Browse the repository at this point in the history
This improves the autofill suggestion on mobile devices and some password managers
  • Loading branch information
Jonher937 authored and AbdulrhmnGhanem committed Aug 10, 2021
1 parent a501e83 commit addfc90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/user/auth/twofa.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit addfc90

Please sign in to comment.