set username = email when authenticating with Google/Facebook/LinkdeIn #130

This commit is contained in:
Alessandro Briosi
2018-04-16 11:40:03 +02:00
parent bc438974f0
commit c1a775f448
3 changed files with 6 additions and 3 deletions

View File

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