Revert comparison order, as suggested by @Sephster

This commit is contained in:
Diogo Oliveira de Melo 2017-10-20 09:23:36 -02:00
parent 170ce2fd2d
commit 203be5ca20

View File

@ -96,7 +96,7 @@ class ImplicitGrant extends AbstractAuthorizeGrant
{
return (
isset($request->getQueryParams()['response_type'])
&& 'token' === $request->getQueryParams()['response_type']
&& $request->getQueryParams()['response_type'] === 'token'
&& isset($request->getQueryParams()['client_id'])
);
}