Project

General

Profile

Defect #3371 ยป redmine-openid_autologin_fix-DrewDahl-3371.patch

Andrew Dahl, 2012-12-16 23:06

View differences:

app/controllers/account_controller.rb
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|
authenticate_with_open_id(openid_url, :required => [:nickname, :fullname, :email], :return_to => signin_url(:autologin => params[:autologin]), :method => :post) do |result, identity_url, registration|
if result.successful?
user = User.find_or_initialize_by_identity_url(identity_url)
if user.new_record?
    (1-1/1)