Updated stub client entity

This commit is contained in:
Alex Bilbie 2016-03-15 21:29:45 +00:00
parent c7a5a57304
commit 9e828f8f3c

View File

@ -53,7 +53,7 @@ class ClientEntity implements ClientEntityInterface
*/
public function setSecret($secret)
{
$this->secret = $secret;
$this->secret = password_hash($secret, PASSWORD_DEFAULT);
}
/**
@ -79,4 +79,14 @@ class ClientEntity implements ClientEntityInterface
{
return $this->redirectUri;
}
/**
* Get the hashed client secret
*
* @return string
*/
public function getSecret()
{
return $this->secret;
}
}