summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-12-13 15:39:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-12-13 15:39:09 +0000
commitf4c37007025b5bdd018c1b95f54a077a4c52319e (patch)
tree8de70b46aa6cd6ccd19c28c784eef5bf69b90e8c /app/controllers
parent1b5a4faf0c74cd31f6f73786f8a870651305740c (diff)
downloadredmine-f4c37007025b5bdd018c1b95f54a077a4c52319e.tar.gz
redmine-f4c37007025b5bdd018c1b95f54a077a4c52319e.zip
Adds the "Hide my email address" option on the registration form (#21500).
git-svn-id: http://svn.redmine.org/redmine/trunk@14976 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/account_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb
index 3c318957b..a4fad4b5c 100644
--- a/app/controllers/account_controller.rb
+++ b/app/controllers/account_controller.rb
@@ -122,6 +122,7 @@ class AccountController < ApplicationController
user_params = params[:user] || {}
@user = User.new
@user.safe_attributes = user_params
+ @user.pref.attributes = params[:pref] if params[:pref]
@user.admin = false
@user.register
if session[:auth_source_registration]