Fix callback error
This commit is contained in:
parent
a1aef1495c
commit
13ff03a278
|
@ -12,7 +12,7 @@ module OmniAuth
|
|||
end
|
||||
|
||||
def patch
|
||||
2
|
||||
3
|
||||
end
|
||||
|
||||
def pre
|
||||
|
|
|
@ -71,10 +71,10 @@ module OmniAuth
|
|||
end
|
||||
|
||||
def identifier
|
||||
binding.pry
|
||||
i = options.identifier || request.params['identifier'] || (env['omniauth.params'].is_a?(Hash) ? env['omniauth.params']['identifier'] : nil)
|
||||
i = options.identifier || request.params['identifier'] || (env['omniauth.params'].is_a?(Hash) ? env['omniauth.params']['identifier'] : nil) || session[:identifier]
|
||||
i = i.downcase.strip unless i.nil?
|
||||
i = nil if i == ''
|
||||
session[:identifier] = i unless i.nil?
|
||||
i
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue