summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorVinnie Okada <vokada@mrvinn.com>2015-05-13 21:57:16 -0600
committerVinnie Okada <vokada@mrvinn.com>2015-05-16 14:03:18 -0600
commitaf428b12598f06073327bc63d75d9c358c95067a (patch)
treee82cb1b3cb69652dfc4746102db27e20a5c4b01b /app/views
parentc68c23210bdf9f0d7212fa55e7bef71ac0f87bcf (diff)
downloadgitlab-ce-af428b12598f06073327bc63d75d9c358c95067a.tar.gz
Fill in email on the new password form
Diffstat (limited to 'app/views')
-rw-r--r--app/views/devise/passwords/new.html.haml2
-rw-r--r--app/views/notify/new_user_email.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/devise/passwords/new.html.haml b/app/views/devise/passwords/new.html.haml
index e8820daf58f..29ffe8a8be3 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
+ = f.email_field :email, placeholder: "Email", class: "form-control", required: true, value: params[:user_email]
.clearfix
= f.submit "Reset password", class: "btn-primary btn"
diff --git a/app/views/notify/new_user_email.html.haml b/app/views/notify/new_user_email.html.haml
index 39cb01d4d29..4feacdaacff 100644
--- a/app/views/notify/new_user_email.html.haml
+++ b/app/views/notify/new_user_email.html.haml
@@ -11,6 +11,6 @@
- if @user.created_by_id
%p
- = link_to "Click here to set your password", edit_password_url(@user, :reset_password_token => @token)
+ = link_to "Click here to set your password", edit_password_url(@user, reset_password_token: @token)
%p
= reset_token_expire_message