summaryrefslogtreecommitdiff
path: root/app/controllers/registrations_controller.rb
diff options
context:
space:
mode:
authorDrew Blessing <drew@gitlab.com>2016-11-11 18:47:32 -0600
committerDrew Blessing <drew@gitlab.com>2017-01-03 00:16:37 -0600
commit33b41bc8a821974d07d01ffdee98db35d1df4840 (patch)
tree45bbf00cc05c87f0659160cb343953ce727e5602 /app/controllers/registrations_controller.rb
parent46920f7e371debe6af526ab9476aef6ca452185b (diff)
downloadgitlab-ce-33b41bc8a821974d07d01ffdee98db35d1df4840.tar.gz
Add email and password confirmation fields to registration form
It's too easy to mistype an email or password when signing up. The support team is receiving an increasing number of requests because users mistype their email. We can eliminate this problem by requiring users to confirm the email before registering. The same issue can occur for the password field so we should add this, too. We should note that password confirmation is part of the default Devise forms. I don't know why/when GitLab removed it.
Diffstat (limited to 'app/controllers/registrations_controller.rb')
-rw-r--r--app/controllers/registrations_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb
index c45196cc3e9..5e652ebe27d 100644
--- a/app/controllers/registrations_controller.rb
+++ b/app/controllers/registrations_controller.rb
@@ -57,7 +57,7 @@ class RegistrationsController < Devise::RegistrationsController
end
def sign_up_params
- params.require(:user).permit(:username, :email, :name, :password, :password_confirmation)
+ params.require(:user).permit(:username, :email, :email_confirmation, :name, :password)
end
def resource_name