diff options
-rw-r--r-- | templates/user/auth/twofa.tmpl | 2 | ||||
-rw-r--r-- | templates/user/auth/twofa_scratch.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/user/auth/twofa.tmpl b/templates/user/auth/twofa.tmpl index d23458e99d..6f61f1f3d9 100644 --- a/templates/user/auth/twofa.tmpl +++ b/templates/user/auth/twofa.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"> diff --git a/templates/user/auth/twofa_scratch.tmpl b/templates/user/auth/twofa_scratch.tmpl index 9b50285bf3..78aab3e575 100644 --- a/templates/user/auth/twofa_scratch.tmpl +++ b/templates/user/auth/twofa_scratch.tmpl @@ -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"> |