mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 13:09:44 +05:30
Updated stub client entity
This commit is contained in:
parent
c7a5a57304
commit
9e828f8f3c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user