Issue #49 fix make() should pass attributes as third parameter not second
This commit is contained in:
@ -91,6 +91,7 @@ class SocialNetworkAuthenticateService implements ServiceInterface
|
||||
/** @var SocialNetworkAccount $account */
|
||||
$account = $this->controller->make(
|
||||
SocialNetworkAccount::class,
|
||||
[],
|
||||
[
|
||||
'provider' => $this->client->getId(),
|
||||
'client_id' => $data['id'],
|
||||
@ -119,6 +120,7 @@ class SocialNetworkAuthenticateService implements ServiceInterface
|
||||
/** @var User $user */
|
||||
$user = $this->controller->make(
|
||||
User::class,
|
||||
[],
|
||||
[
|
||||
'scenario' => 'connect',
|
||||
'username' => $account->username,
|
||||
|
||||
Reference in New Issue
Block a user