Support use case when google does not return users name
This commit is contained in:
parent
c3ff55bf2b
commit
0c325ab1de
|
|
@ -25,7 +25,7 @@ class Google implements ProviderInterface
|
||||||
|
|
||||||
public function harvestName($payload)
|
public function harvestName($payload)
|
||||||
{
|
{
|
||||||
return $payload['name'] ?? '';
|
return $payload['name'] ?? 'unknown name';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function harvestUser($access_token)
|
public function harvestUser($access_token)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue