mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-11-22 23:53:18 +05:30
Accept scopes as reference
This commit is contained in:
1 parent
400eae153b
commit
e27b13ee7d
1 file changed
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user