summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-04-13 12:57:40 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-04-13 13:03:11 +0530
commitd5f44d8a4b23b20f8292147db9c7f7730de70a3b (patch)
tree9a4192accbac1b03aa7789d3244648006bf0c7d7 /app
parente57a9551df0a6b6de218bf881322fcba5a77485b (diff)
downloadgitlab-ce-d5f44d8a4b23b20f8292147db9c7f7730de70a3b.tar.gz
Don't retrieve default values from `params`
- In the signup page.
Diffstat (limited to 'app')
-rw-r--r--app/views/devise/shared/_signup_box.html.haml7
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