mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-27 15:30:24 +05:30
Merge pull request #78 from philipbrown/fix_fluent_client_argument_default
Fix fluent client argument default
This commit is contained in:
commit
71b6f2c2bc
@ -7,7 +7,7 @@ use \League\OAuth2\Server\Storage\ClientInterface;
|
||||
|
||||
class Client implements ClientInterface {
|
||||
|
||||
public function getClient($clientId, $clientSecret = null, $redirectUri = null, $grantType)
|
||||
public function getClient($clientId, $clientSecret = null, $redirectUri = null, $grantType = null)
|
||||
{
|
||||
if ( ! is_null($redirectUri) && is_null($clientSecret)) {
|
||||
$result = DB::table('oauth_clients')
|
||||
@ -41,4 +41,4 @@ class Client implements ClientInterface {
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user