Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-28 04:36:11 +01:00

Autofocus on 2fa passcode fields (#1460)

* Autofocus on 2fa passcode field

* Autofocus on 2fa scratch code field
This commit is contained in:
Jonas 2017-04-07 15:07:37 +02:00 committed by Lunny Xiao
parent 5acfc7c4bc
commit e0df611cbc
2 changed files with 2 additions and 2 deletions

View file

@ -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="text" autocomplete="off" required>
<input id="passcode" name="passcode" type="text" autocomplete="off" autofocus required>
</div>
<div class="inline field">

View file

@ -11,7 +11,7 @@
{{template "base/alert" .}}
<div class="required inline field">
<label for="token">{{.i18n.Tr "auth.scratch_code"}}</label>
<input id="token" name="token" type="text" autocomplete="off" required>
<input id="token" name="token" type="text" autocomplete="off" autofocus required>
</div>
<div class="inline field">