Commit c0807e52f16bf38cb52cff24dc06e7df62725435
Exists in
master
and in
29 other branches
Merge commit 'refs/merge-requests/272' of git://gitorious.org/noosfero/noosfero …
…into merge-requests/272
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 | 71 | @block_bot = !!session[:may_be_a_bot] |
72 | 72 | @invitation_code = params[:invitation_code] |
73 | 73 | begin |
74 | - if params[:user] | |
75 | - params[:user].delete(:password_confirmation_clear) | |
76 | - params[:user].delete(:password_clear) | |
77 | - end | |
78 | 74 | @user = User.new(params[:user]) |
79 | 75 | @user.terms_of_use = environment.terms_of_use |
80 | 76 | @user.environment = environment | ... | ... |
test/functional/account_controller_test.rb
... | ... | @@ -730,12 +730,6 @@ class AccountControllerTest < ActionController::TestCase |
730 | 730 | assert_template 'signup' |
731 | 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 | 733 | should 'login after signup when no e-mail confirmation is required' do |
740 | 734 | e = Environment.default |
741 | 735 | e.enable('skip_new_user_email_confirmation') | ... | ... |