Commit 191872f4 authored by jplang's avatar jplang

Removed unsafe attributes assignment.

git-svn-id: https://svn.redmine.org/redmine/trunk@8784 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 337fe537
......@@ -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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment