From 940080851db8bb423e272b05f34ab890f019d124 Mon Sep 17 00:00:00 2001 From: "enrico.degaudenzi@connectorly.io" Date: Wed, 14 Aug 2024 16:14:28 +0100 Subject: [PATCH] #397 No more fatal Exceptions when connecting to already taken Social Network --- CHANGELOG.md | 1 + src/User/Service/SocialNetworkAccountConnectService.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65b687ae..d9f23ab3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Enh: Changed exception thrown in PasswordRecoveryService from `RuntimeException` to `NotFoundException`. (eseperio) - New #553: created Da\User\AuthClient\Microsoft365 auth client (edegaudenzi) - Ehh: Added SecurityHelper to the Bootstrap classMap +- Fix #397: No more fatal Exceptions when connecting to already taken Social Network (edegaudenzi) ## 1.6.3 Mar 18th, 2024 diff --git a/src/User/Service/SocialNetworkAccountConnectService.php b/src/User/Service/SocialNetworkAccountConnectService.php index 366c5f89..2c903ff0 100644 --- a/src/User/Service/SocialNetworkAccountConnectService.php +++ b/src/User/Service/SocialNetworkAccountConnectService.php @@ -93,6 +93,6 @@ protected function getSocialNetworkAccount() } } - return false; + return $account; } }