From 8f18c51cf2860ef663fa761f8df5f96c04e5bdd5 Mon Sep 17 00:00:00 2001 From: Elias Luhr Date: Fri, 5 Jan 2024 15:26:40 +0100 Subject: [PATCH] Use new property to enable social network registration in registration controller --- src/User/Controller/RegistrationController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/User/Controller/RegistrationController.php b/src/User/Controller/RegistrationController.php index 6abb039..c1c11f6 100644 --- a/src/User/Controller/RegistrationController.php +++ b/src/User/Controller/RegistrationController.php @@ -152,6 +152,10 @@ class RegistrationController extends Controller */ public function actionConnect($code) { + if (!$this->module->enableSocialNetworkRegistration) { + throw new NotFoundHttpException(); + } + /** @var SocialNetworkAccount $account */ $account = $this->socialNetworkAccountQuery->whereCode($code)->one(); if ($account === null || $account->getIsConnected()) {