mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Accept scopes as reference
This commit is contained in:
@@ -70,7 +70,7 @@ class PasswordGrant extends AbstractGrant
|
|||||||
* @return \League\OAuth2\Server\Entities\Interfaces\UserEntityInterface
|
* @return \League\OAuth2\Server\Entities\Interfaces\UserEntityInterface
|
||||||
* @throws \League\OAuth2\Server\Exception\OAuthServerException
|
* @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);
|
$username = $this->getRequestParameter('username', $request);
|
||||||
if (is_null($username)) {
|
if (is_null($username)) {
|
||||||
|
Reference in New Issue
Block a user