diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-04-13 12:02:20 +0530 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2016-04-13 12:02:20 +0530 |
commit | e57a9551df0a6b6de218bf881322fcba5a77485b (patch) | |
tree | fbc7a1511f32e56950331029eece09cfac116abf /app/views/devise | |
parent | 64d71b4dfc4513b70eac61cbb9bb718aee3f09e9 (diff) | |
download | gitlab-ce-e57a9551df0a6b6de218bf881322fcba5a77485b.tar.gz |
Don't populate the password field on signup validation errors.
- Previously, we were pulling `params[:user][:password] as the default
value for the password field. This is incorrect; we should be pulling
it from `@user.password` or the like.
Diffstat (limited to 'app/views/devise')
-rw-r--r-- | app/views/devise/shared/_signup_box.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/devise/shared/_signup_box.html.haml b/app/views/devise/shared/_signup_box.html.haml index cb93ff2465e..7f23dbfed99 100644 --- a/app/views/devise/shared/_signup_box.html.haml +++ b/app/views/devise/shared/_signup_box.html.haml @@ -17,7 +17,7 @@ %div = f.email_field :email, class: "form-control middle", value: user[:email], placeholder: "Email", required: true .form-group.append-bottom-20#password-strength - = f.password_field :password, class: "form-control bottom", value: user[:password], id: "user_password_sign_up", placeholder: "Password", required: true + = f.password_field :password, class: "form-control bottom", id: "user_password_sign_up", placeholder: "Password", required: true %div - if current_application_settings.recaptcha_enabled = recaptcha_tags |