mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-01 16:33:07 +05:30
Code tidy
This commit is contained in:
parent
e03ad0d52f
commit
de89a6bc89
@ -155,13 +155,9 @@ class PasswordGrant extends AbstractGrant
|
|||||||
*/
|
*/
|
||||||
public function canRespondToRequest(ServerRequestInterface $request)
|
public function canRespondToRequest(ServerRequestInterface $request)
|
||||||
{
|
{
|
||||||
if (
|
return (
|
||||||
isset($request->getParsedBody()['grant_type'])
|
isset($request->getParsedBody()['grant_type'])
|
||||||
&& $request->getParsedBody()['grant_type'] === 'password'
|
&& $request->getParsedBody()['grant_type'] === 'password'
|
||||||
) {
|
);
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user