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