Added grant and scopes to UserRepository getUserEntityByUserCredentials method

This commit is contained in:
Alex Bilbie
2016-03-22 14:18:02 +00:00
parent c880d5c1ec
commit 400eae153b
4 changed files with 24 additions and 9 deletions

View File

@@ -123,7 +123,9 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
if ($userId === null && $usernameParameter !== null && $passwordParameter !== null) {
$userEntity = $this->userRepository->getUserEntityByUserCredentials(
$usernameParameter,
$passwordParameter
$passwordParameter,
$this->getIdentifier(),
$scopes
);
if ($userEntity instanceof UserEntityInterface) {