Accept scopes as reference

This commit is contained in:
Alex Bilbie 2016-03-22 14:44:21 +00:00
parent 400eae153b
commit e27b13ee7d

View File

@ -70,7 +70,7 @@ class PasswordGrant extends AbstractGrant
* @return \League\OAuth2\Server\Entities\Interfaces\UserEntityInterface
* @throws \League\OAuth2\Server\Exception\OAuthServerException
*/
protected function validateUser(ServerRequestInterface $request, array $scopes)
protected function validateUser(ServerRequestInterface $request, array &$scopes)
{
$username = $this->getRequestParameter('username', $request);
if (is_null($username)) {