Skip to content

Commit

Permalink
fix to work redirect_back_or_to when with externals
Browse files Browse the repository at this point in the history
  • Loading branch information
banyan committed Apr 21, 2012
1 parent 0ecc67f commit 1a6691f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/sorcery/controller/submodules/external.rb
Expand Up @@ -46,7 +46,9 @@ def login_from(provider)
@provider.process_callback(params,session)
@user_hash = @provider.get_user_hash
if user = user_class.load_from_provider(provider,@user_hash[:uid].to_s)
return_to_url = session[:return_to_url]
reset_session
session[:return_to_url] = return_to_url
auto_login(user)
user
end
Expand Down

0 comments on commit 1a6691f

Please sign in to comment.