lib/omniauth/strategies/clef.rb in omniauth-clef-1.0.1 vs lib/omniauth/strategies/clef.rb in omniauth-clef-1.0.2

- old
+ new

@@ -28,9 +28,14 @@ end extra do hash = {} hash['raw_info'] = raw_info unless skip_info? + if raw_info['first_name'] && raw_info['last_name'] + hash['raw_info']['name'] = "#{raw_info['first_name']} #{raw_info['last_name']}" + elsif raw_info['first_name'] + hash['raw_info']['name'] = raw_info['first_name'] + end prune! hash end def request_phase url = options.client_options.request_url \ No newline at end of file