Commit 78d697c4ae1ed12c10b84e9ab316c2de2b3808c9
1 parent
1aeb0d56
Exists in
master
and in
23 other branches
Removed outdated code
Showing
2 changed files
with
0 additions
and
10 deletions
Show diff stats
app/controllers/public/account_controller.rb
| @@ -71,10 +71,6 @@ class AccountController < ApplicationController | @@ -71,10 +71,6 @@ class AccountController < ApplicationController | ||
| 71 | @block_bot = !!session[:may_be_a_bot] | 71 | @block_bot = !!session[:may_be_a_bot] |
| 72 | @invitation_code = params[:invitation_code] | 72 | @invitation_code = params[:invitation_code] |
| 73 | begin | 73 | begin |
| 74 | - if params[:user] | ||
| 75 | - params[:user].delete(:password_confirmation_clear) | ||
| 76 | - params[:user].delete(:password_clear) | ||
| 77 | - end | ||
| 78 | @user = User.new(params[:user]) | 74 | @user = User.new(params[:user]) |
| 79 | @user.terms_of_use = environment.terms_of_use | 75 | @user.terms_of_use = environment.terms_of_use |
| 80 | @user.environment = environment | 76 | @user.environment = environment |
test/functional/account_controller_test.rb
| @@ -730,12 +730,6 @@ class AccountControllerTest < ActionController::TestCase | @@ -730,12 +730,6 @@ class AccountControllerTest < ActionController::TestCase | ||
| 730 | assert_template 'signup' | 730 | assert_template 'signup' |
| 731 | end | 731 | end |
| 732 | 732 | ||
| 733 | - should 'remove useless user data on signup' do | ||
| 734 | - assert_nothing_raised do | ||
| 735 | - new_user :password_clear => 'nothing', :password_confirmation_clear => 'nothing' | ||
| 736 | - end | ||
| 737 | - end | ||
| 738 | - | ||
| 739 | should 'login after signup when no e-mail confirmation is required' do | 733 | should 'login after signup when no e-mail confirmation is required' do |
| 740 | e = Environment.default | 734 | e = Environment.default |
| 741 | e.enable('skip_new_user_email_confirmation') | 735 | e.enable('skip_new_user_email_confirmation') |