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:
parent
4128a8bfd0
commit
f52f18c281
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue