Commit 820a8650 authored by jplang's avatar jplang
Browse files

Adds autologin param in openid return_to url (#3371).

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 0c5a438a
......@@ -176,7 +176,9 @@ class AccountController < ApplicationController
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?
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment