]> source.dussan.org Git - redmine.git/commitdiff
Merged r11521 from trunk (#3371).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 9 Mar 2013 09:13:01 +0000 (09:13 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 9 Mar 2013 09:13:01 +0000 (09:13 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.3-stable@11563 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/account_controller.rb

index df9a7a975171ae4e85bb0393e909242003ae03d5..573390ba7de094786d2c7d7d494b1d9ba7e24756 100644 (file)
@@ -176,7 +176,9 @@ class AccountController < ApplicationController
   end
 
   def open_id_authenticate(openid_url)
-    authenticate_with_open_id(openid_url, :required => [:nickname, :fullname, :email], :return_to => signin_url, :method => :post) do |result, identity_url, registration|
+    back_url = signin_url(:autologin => params[:autologin])
+
+    authenticate_with_open_id(openid_url, :required => [:nickname, :fullname, :email], :return_to => back_url, :method => :post) do |result, identity_url, registration|
       if result.successful?
         user = User.find_or_initialize_by_identity_url(identity_url)
         if user.new_record?