diff --git a/Controller/ConnectController.php b/Controller/ConnectController.php
index <HASH>..<HASH> 100644
--- a/Controller/ConnectController.php
+++ b/Controller/ConnectController.php
@@ -342,6 +342,10 @@ final class ConnectController extends AbstractController
         $event = new FilterUserResponseEvent($currentUser, $request, $response);
         $this->dispatch($event, HWIOAuthEvents::CONNECT_COMPLETED);
 
+        if (null !== $event->getResponse()) {
+            return $event->getResponse();
+        }
+
         return $response;
     }
Customizing the CONNECT_COMPLETED response

Accepting the response from the event listener associated with HWIOAuthEvents::CONNECT_COMPLETED whenever it's set instead of always using the @HWIOAuth/Connect/connect_success.html.twig template rendering