summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-09-30 15:39:59 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-09-30 15:39:59 -0400
commit5c80ceee0d3545061f1ca85ad8c25d0583e1e4d2 (patch)
tree4c857550554ce85730955c1c940442bc1be90b7b
parent292bca0546c59b9816c696371cd9bbf04ba19fb2 (diff)
downloadgitlab-ce-5c80ceee0d3545061f1ca85ad8c25d0583e1e4d2.tar.gz
Autofocus the email field on the password reset form
-rw-r--r--app/views/devise/passwords/new.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/devise/passwords/new.html.haml b/app/views/devise/passwords/new.html.haml
index 29ffe8a8be3..535e85869e5 100644
--- a/app/views/devise/passwords/new.html.haml
+++ b/app/views/devise/passwords/new.html.haml
@@ -6,7 +6,7 @@
.devise-errors
= devise_error_messages!
.clearfix.append-bottom-20
- = f.email_field :email, placeholder: "Email", class: "form-control", required: true, value: params[:user_email]
+ = f.email_field :email, placeholder: "Email", class: "form-control", required: true, value: params[:user_email], autofocus: true
.clearfix
= f.submit "Reset password", class: "btn-primary btn"