mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-27 17:22:10 +05:30
Accept scopes as reference
This commit is contained in:
parent
400eae153b
commit
e27b13ee7d
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user