On the documentation regarding the FOSUserBundle integration, the custom provider has a method called setFacebookId(), like this:
public function setFacebookId($facebookId)
{
$this->facebookId = $facebookId;
$this->setUsername($facebookId);
$this->salt = '';
}
But in order for the integration to work properly, this method cannot overwrite the salt, otherwise the user will never be able to login using the username and password combination again.
The correct way is this:
public function setFacebookId($facebookId)
{
$this->facebookId = $facebookId;
$this->setUsername($facebookId);
}
Should we update the docs or just add this custom provider to the bundle?
On the documentation regarding the FOSUserBundle integration, the custom provider has a method called
setFacebookId()
, like this:But in order for the integration to work properly, this method cannot overwrite the salt, otherwise the user will never be able to login using the username and password combination again.
The correct way is this:
Should we update the docs or just add this custom provider to the bundle?