From 0844a22b02a97f5c9003e2462d169f1e06739b37 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Sun, 20 Dec 2009 20:13:50 +0000 Subject: [PATCH] Refactor: Use the existing method for failing onthefly creations. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3208 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/account_controller.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index 674045f73..c75f64e1b 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -141,10 +141,7 @@ class AccountController < ApplicationController # Invalid credentials flash.now[:error] = l(:notice_account_invalid_creditentials) elsif user.new_record? - # Onthefly creation failed, display the registration form to fill/fix attributes - @user = user - session[:auth_source_registration] = {:login => user.login, :auth_source_id => user.auth_source_id } - render :action => 'register' + onthefly_creation_failed(user, {:login => user.login, :auth_source_id => user.auth_source_id }) else # Valid user successful_authentication(user)