Merge pull request #173 from tsdogs/issue130

set username = email when authenticating with Google/Facebook/LinkdeI…
This commit is contained in:
Antonio Ramirez
2018-05-02 17:41:12 +02:00
committed by GitHub
3 changed files with 6 additions and 3 deletions

View File

@ -31,6 +31,7 @@ class Facebook extends BaseFacebook implements AuthClientInterface
*/
public function getUsername()
{
return null;
/* returns the e-mail as it corresponds with the username */
return $this->getEmail();
}
}

View File

@ -31,6 +31,7 @@ class Google extends BaseGoogle implements AuthClientInterface
*/
public function getUsername()
{
return null;
/* returns the e-mail as it corresponds with the username */
return $this->getEmail();
}
}

View File

@ -31,6 +31,7 @@ class LinkedIn extends BaseLinkedIn implements AuthClientInterface
*/
public function getUsername()
{
return null;
/* returns the e-mail as it corresponds with the username */
return $this->getEmail();
}
}