Skip to content

Commit

Permalink
Merge pull request #340 from derekmd/google-payload-name-is-optional
Browse files Browse the repository at this point in the history
[4.0] Handle Google responses excluding 'name'
  • Loading branch information
taylorotwell authored Feb 10, 2019
2 parents 25eea36 + 81b871d commit 241438e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Two/GoogleProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected function mapUserToObject(array $user)
return (new User)->setRaw($user)->map([
'id' => $user['id'],
'nickname' => Arr::get($user, 'nickname'),
'name' => $user['name'],
'name' => Arr::get($user, 'name'),
'email' => Arr::get($user, 'email'),
'avatar' => $avatarUrl,
'avatar_original' => preg_replace('/\?sz=([0-9]+)/', '', $avatarUrl),
Expand Down

0 comments on commit 241438e

Please sign in to comment.