Autofocus on 2fa passcode fields (#1460)

* Autofocus on 2fa passcode field

* Autofocus on 2fa scratch code field
tokarchuk/v1.17
Jonas 8 years ago committed by Lunny Xiao
parent 5acfc7c4bc
commit e0df611cbc
  1. 2
      templates/user/auth/twofa.tmpl
  2. 2
      templates/user/auth/twofa_scratch.tmpl

@ -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">

@ -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">

Loading…
Cancel
Save