diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-04-13 12:57:40 +0530 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2016-04-13 13:03:11 +0530 |
commit | d5f44d8a4b23b20f8292147db9c7f7730de70a3b (patch) | |
tree | 9a4192accbac1b03aa7789d3244648006bf0c7d7 /app/views | |
parent | e57a9551df0a6b6de218bf881322fcba5a77485b (diff) | |
download | gitlab-ce-d5f44d8a4b23b20f8292147db9c7f7730de70a3b.tar.gz |
Don't retrieve default values from `params`
- In the signup page.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/devise/shared/_signup_box.html.haml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/devise/shared/_signup_box.html.haml b/app/views/devise/shared/_signup_box.html.haml index 7f23dbfed99..e5607dacd0d 100644 --- a/app/views/devise/shared/_signup_box.html.haml +++ b/app/views/devise/shared/_signup_box.html.haml @@ -6,16 +6,15 @@ .login-heading %h3 Create an account .login-body - - user = params[:user].present? ? params[:user] : {} = form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| .devise-errors = devise_error_messages! %div - = f.text_field :name, class: "form-control top", value: user[:name], placeholder: "Name", required: true + = f.text_field :name, class: "form-control top", placeholder: "Name", required: true %div - = f.text_field :username, class: "form-control middle", value: user[:username], placeholder: "Username", required: true + = f.text_field :username, class: "form-control middle", placeholder: "Username", required: true %div - = f.email_field :email, class: "form-control middle", value: user[:email], placeholder: "Email", required: true + = f.email_field :email, class: "form-control middle", placeholder: "Email", required: true .form-group.append-bottom-20#password-strength = f.password_field :password, class: "form-control bottom", id: "user_password_sign_up", placeholder: "Password", required: true %div |