diff --git a/CHANGELOG.md b/CHANGELOG.md index bc562dc..6b3c222 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # CHANGELOG ## 1.0.13 - Work in progress +- Fix #49: Fix wrong call of method make() for set attributes (MKiselev) - Enh #46: Use safeUp()/safeDown() instead up()/down() in migrations (MKiselev) - Fix #51: Typo fix rememberLoginLifeSpan to rememberLoginLifespan (MKiselev) diff --git a/src/User/Controller/RegistrationController.php b/src/User/Controller/RegistrationController.php index 49b0071..3dc21ff 100644 --- a/src/User/Controller/RegistrationController.php +++ b/src/User/Controller/RegistrationController.php @@ -145,6 +145,7 @@ class RegistrationController extends Controller /** @var User $user */ $user = $this->make( User::class, + [], ['scenario' => 'connect', 'username' => $account->username, 'email' => $account->email] ); $event = $this->make(SocialNetworkConnectEvent::class, [$user, $account]); diff --git a/src/User/Service/SocialNetworkAccountConnectService.php b/src/User/Service/SocialNetworkAccountConnectService.php index fbf9cc7..2d6a7a5 100644 --- a/src/User/Service/SocialNetworkAccountConnectService.php +++ b/src/User/Service/SocialNetworkAccountConnectService.php @@ -80,6 +80,7 @@ class SocialNetworkAccountConnectService implements ServiceInterface $account = $this->make( SocialNetworkAccount::class, + [], [ 'provider' => $this->client->getId(), 'client_id' => $data['id'], diff --git a/src/User/Service/SocialNetworkAuthenticateService.php b/src/User/Service/SocialNetworkAuthenticateService.php index 9806276..1e621f9 100644 --- a/src/User/Service/SocialNetworkAuthenticateService.php +++ b/src/User/Service/SocialNetworkAuthenticateService.php @@ -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,