diff options
author | Jonas <cez81@users.noreply.github.com> | 2017-04-07 15:07:37 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-04-07 06:07:37 -0700 |
commit | e0df611cbc44360082d886106c4f2d4130c3dd81 (patch) | |
tree | e6860ef46a4cbcd343249a1982b04c57483bd03a /templates/user/auth | |
parent | 5acfc7c4bc93e547fcb31263da746263d64df7e9 (diff) | |
download | gitea-e0df611cbc44360082d886106c4f2d4130c3dd81.tar.gz gitea-e0df611cbc44360082d886106c4f2d4130c3dd81.zip |
Autofocus on 2fa passcode fields (#1460)
* Autofocus on 2fa passcode field
* Autofocus on 2fa scratch code field
Diffstat (limited to 'templates/user/auth')
-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"> |