mirror of
https://github.com/omniauth/omniauth.git
synced 2022-11-09 12:31:49 -05:00
Store params in omniauth.params instead of request_params in the session.
This commit is contained in:
parent
77e9ffb368
commit
c98b6e0637
1 changed files with 2 additions and 2 deletions
|
@ -179,7 +179,7 @@ module OmniAuth
|
|||
setup_phase
|
||||
|
||||
#store query params from the request url, extracted in the callback_phase
|
||||
session['query_params'] = Rack::Request.new(env).params
|
||||
session['omniauth.params'] = request.params
|
||||
|
||||
if options.form.respond_to?(:call)
|
||||
options.form.call(env)
|
||||
|
@ -200,7 +200,7 @@ module OmniAuth
|
|||
setup_phase
|
||||
@env['omniauth.origin'] = session.delete('omniauth.origin')
|
||||
@env['omniauth.origin'] = nil if env['omniauth.origin'] == ''
|
||||
@env['omniauth.params'] = session.delete('query_params') || {}
|
||||
@env['omniauth.params'] = session.delete('omniauth.params') || {}
|
||||
callback_phase
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue