From 3fb0fedd0415732b3c1bf0aaa66abf1197012d75 Mon Sep 17 00:00:00 2001
From: Robert Speicher <rspeicher@gmail.com>
Date: Sat, 9 May 2015 17:00:37 -0400
Subject: [PATCH] Autofocus the pin field on 2FA enable form

---
 app/views/profiles/two_factor_auths/new.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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'
-- 
GitLab