Removed unsafe attributes assignment.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8784 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-02-05 12:21:21 +00:00
parent 4128a8bfd0
commit f52f18c281
1 changed files with 2 additions and 1 deletions

View File

@ -81,7 +81,8 @@ class AccountController < ApplicationController
session[:auth_source_registration] = nil
@user = User.new(:language => Setting.default_language)
else
@user = User.new(params[:user])
@user = User.new
@user.safe_attributes = params[:user]
@user.admin = false
@user.register
if session[:auth_source_registration]