From 78d697c4ae1ed12c10b84e9ab316c2de2b3808c9 Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Wed, 23 Jan 2013 11:23:05 -0200 Subject: [PATCH] Removed outdated code --- app/controllers/public/account_controller.rb | 4 ---- test/functional/account_controller_test.rb | 6 ------ 2 files changed, 0 insertions(+), 10 deletions(-) diff --git a/app/controllers/public/account_controller.rb b/app/controllers/public/account_controller.rb index fa24323..4ac1540 100644 --- a/app/controllers/public/account_controller.rb +++ b/app/controllers/public/account_controller.rb @@ -71,10 +71,6 @@ class AccountController < ApplicationController @block_bot = !!session[:may_be_a_bot] @invitation_code = params[:invitation_code] begin - if params[:user] - params[:user].delete(:password_confirmation_clear) - params[:user].delete(:password_clear) - end @user = User.new(params[:user]) @user.terms_of_use = environment.terms_of_use @user.environment = environment diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb index 4cb0bf1..6e2cf09 100644 --- a/test/functional/account_controller_test.rb +++ b/test/functional/account_controller_test.rb @@ -730,12 +730,6 @@ class AccountControllerTest < ActionController::TestCase assert_template 'signup' end - should 'remove useless user data on signup' do - assert_nothing_raised do - new_user :password_clear => 'nothing', :password_confirmation_clear => 'nothing' - end - end - should 'login after signup when no e-mail confirmation is required' do e = Environment.default e.enable('skip_new_user_email_confirmation') -- libgit2 0.21.2