From de765b0f1a4dd4e8d202880f1320d1cad9b39b8e Mon Sep 17 00:00:00 2001 From: MoisesMachado Date: Thu, 8 Nov 2007 19:17:02 +0000 Subject: [PATCH] ActionItem114: changed the redirection of the login to the myprofile page and fixed the tests for it --- app/controllers/public/account_controller.rb | 3 +-- test/test_helper.rb | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/controllers/public/account_controller.rb b/app/controllers/public/account_controller.rb index 3662bd7..ce6a303 100644 --- a/app/controllers/public/account_controller.rb +++ b/app/controllers/public/account_controller.rb @@ -20,8 +20,7 @@ class AccountController < PublicController self.current_user.remember_me cookies[:auth_token] = { :value => self.current_user.remember_token , :expires => self.current_user.remember_token_expires_at } end -# redirect_back_or_default(:controller => '/account', :action => 'index') - redirect_back_or_default(homepage_path(:profile => current_user.login)) + redirect_back_or_default(myprofile_path(:controller => 'profile_editor', :profile => current_user.login)) flash[:notice] = _("Logged in successfully") else flash[:notice] = _('Incorrect username or password') diff --git a/test/test_helper.rb b/test/test_helper.rb index af78b04..be036c0 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -91,6 +91,6 @@ class ActionController::IntegrationTest post '/account/login', :login => username, :password => password assert_response :redirect follow_redirect! - assert_equal '/account', path + assert_equal myprofile_path(:controller => 'profile_editor', :profile => username), path end end -- libgit2 0.21.2