redmine-openid_autologin_fix-DrewDahl-3371.patch

Andrew Dahl, 2012-12-16 23:06

Download (1.14 KB)

View differences:

app/controllers/account_controller.rb
169 169
  end
170 170

  
171 171
  def open_id_authenticate(openid_url)
172
    authenticate_with_open_id(openid_url, :required => [:nickname, :fullname, :email], :return_to => signin_url, :method => :post) do |result, identity_url, registration|
172
    authenticate_with_open_id(openid_url, :required => [:nickname, :fullname, :email], :return_to => signin_url(:autologin => params[:autologin]), :method => :post) do |result, identity_url, registration|
173 173
      if result.successful?
174 174
        user = User.find_or_initialize_by_identity_url(identity_url)
175 175
        if user.new_record?
176
-