This commit is contained in:
Alex Bilbie 2016-04-27 20:53:12 +01:00
parent 14b6761c0f
commit 5241309bdb

View File

@ -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(