diff options
author | Drew Blessing <drew@gitlab.com> | 2016-11-12 03:47:32 +0300 |
---|---|---|
committer | Drew Blessing <drew@gitlab.com> | 2017-01-03 09:16:37 +0300 |
commit | 33b41bc8a821974d07d01ffdee98db35d1df4840 (patch) | |
tree | 45bbf00cc05c87f0659160cb343953ce727e5602 /app/controllers/registrations_controller.rb | |
parent | 46920f7e371debe6af526ab9476aef6ca452185b (diff) |
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.rb | 2 |
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 |