summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-05-09 17:00:37 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-05-09 17:32:49 -0400
commit3fb0fedd0415732b3c1bf0aaa66abf1197012d75 (patch)
treefbfddc6c65abdd588c4e84cdc59ea996d1f873f6
parentc40f59d04f6c01b543f793f0884b26732fdcc0f0 (diff)
downloadgitlab-ce-3fb0fedd0415732b3c1bf0aaa66abf1197012d75.tar.gz
Autofocus the pin field on 2FA enable form
-rw-r--r--app/views/profiles/two_factor_auths/new.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/profiles/two_factor_auths/new.html.haml b/app/views/profiles/two_factor_auths/new.html.haml
index f0a4a341878..fe03a259a12 100644
--- a/app/views/profiles/two_factor_auths/new.html.haml
+++ b/app/views/profiles/two_factor_auths/new.html.haml
@@ -18,6 +18,6 @@
.form-group
= label_tag :pin_code, nil, class: "control-label"
.col-sm-10
- = text_field_tag :pin_code, nil, class: "form-control", required: true
+ = text_field_tag :pin_code, nil, class: "form-control", required: true, autofocus: true
.form-actions
= submit_tag 'Submit', class: 'btn btn-success'