Browse Source

Autofocus on 2fa passcode fields (#1460)

* Autofocus on 2fa passcode field

* Autofocus on 2fa scratch code field
tags/v1.21.12.1
Jonas Lunny Xiao 8 years ago
parent
commit
e0df611cbc
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      templates/user/auth/twofa.tmpl
  2. +1
    -1
      templates/user/auth/twofa_scratch.tmpl

+ 1
- 1
templates/user/auth/twofa.tmpl 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="text" autocomplete="off" required>
<input id="passcode" name="passcode" type="text" autocomplete="off" autofocus required>
</div> </div>


<div class="inline field"> <div class="inline field">


+ 1
- 1
templates/user/auth/twofa_scratch.tmpl View File

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


<div class="inline field"> <div class="inline field">


Loading…
Cancel
Save