Skip to content

Commit e0df611

Browse files
cez81lunny
authored andcommitted
Autofocus on 2fa passcode fields (#1460)
* Autofocus on 2fa passcode field * Autofocus on 2fa scratch code field
1 parent 5acfc7c commit e0df611

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/user/auth/twofa.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{{template "base/alert" .}}
1212
<div class="required inline field">
1313
<label for="passcode">{{.i18n.Tr "passcode"}}</label>
14-
<input id="passcode" name="passcode" type="text" autocomplete="off" required>
14+
<input id="passcode" name="passcode" type="text" autocomplete="off" autofocus required>
1515
</div>
1616

1717
<div class="inline field">

templates/user/auth/twofa_scratch.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{{template "base/alert" .}}
1212
<div class="required inline field">
1313
<label for="token">{{.i18n.Tr "auth.scratch_code"}}</label>
14-
<input id="token" name="token" type="text" autocomplete="off" required>
14+
<input id="token" name="token" type="text" autocomplete="off" autofocus required>
1515
</div>
1616

1717
<div class="inline field">

0 commit comments

Comments
 (0)