diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index df9a7a975..573390ba7 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -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?