Fix callback error

This commit is contained in:
Eugen Rochko 2017-04-05 01:45:46 +02:00
parent a1aef1495c
commit 13ff03a278
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ module OmniAuth
end
def patch
2
3
end
def pre

View File

@ -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