mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-02-24 03:37:37 +05:30
Set $grantType default
This commit is contained in:
parent
307964d571
commit
f1567df802
@ -7,7 +7,7 @@ use \League\OAuth2\Server\Storage\ClientInterface;
|
|||||||
|
|
||||||
class Client implements 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)) {
|
if ( ! is_null($redirectUri) && is_null($clientSecret)) {
|
||||||
$result = DB::table('oauth_clients')
|
$result = DB::table('oauth_clients')
|
||||||
@ -41,4 +41,4 @@ class Client implements ClientInterface {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user