mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
Fixes #560
This commit is contained in:
parent
14b6761c0f
commit
5241309bdb
@ -77,12 +77,12 @@ class PasswordGrant extends AbstractGrant
|
|||||||
{
|
{
|
||||||
$username = $this->getRequestParameter('username', $request);
|
$username = $this->getRequestParameter('username', $request);
|
||||||
if (is_null($username)) {
|
if (is_null($username)) {
|
||||||
throw OAuthServerException::invalidRequest('username', '`%s` parameter is missing');
|
throw OAuthServerException::invalidRequest('username');
|
||||||
}
|
}
|
||||||
|
|
||||||
$password = $this->getRequestParameter('password', $request);
|
$password = $this->getRequestParameter('password', $request);
|
||||||
if (is_null($password)) {
|
if (is_null($password)) {
|
||||||
throw OAuthServerException::invalidRequest('password', '`%s` parameter is missing');
|
throw OAuthServerException::invalidRequest('password');
|
||||||
}
|
}
|
||||||
|
|
||||||
$user = $this->userRepository->getUserEntityByUserCredentials(
|
$user = $this->userRepository->getUserEntityByUserCredentials(
|
||||||
|
Loading…
Reference in New Issue
Block a user