From a7fb3f784ea904803dda726e23bb2eb97e098c8c Mon Sep 17 00:00:00 2001 From: Maik Schneider Date: Fri, 5 May 2023 18:02:27 +0200 Subject: [PATCH] fix: array access in user factories --- Classes/UserFactory/BackendUserFactory.php | 2 +- Classes/UserFactory/FrontendUserFactory.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/UserFactory/BackendUserFactory.php b/Classes/UserFactory/BackendUserFactory.php index 9932aba..78ccff4 100644 --- a/Classes/UserFactory/BackendUserFactory.php +++ b/Classes/UserFactory/BackendUserFactory.php @@ -74,7 +74,7 @@ protected function findUserByUsernameOrEmail(): ?array public function registerRemoteUser(): ?array { - $doCreateNewUser = isset($this->extendedProviderConfiguration) && $this->extendedProviderConfiguration['createBackendUser']; + $doCreateNewUser = isset($this->extendedProviderConfiguration[$this->providerId]['createBackendUser']) && $this->extendedProviderConfiguration[$this->providerId]['createBackendUser']; // find or optionally create $userRecord = $this->findUserByUsernameOrEmail(); diff --git a/Classes/UserFactory/FrontendUserFactory.php b/Classes/UserFactory/FrontendUserFactory.php index 647c6c5..cbf9a0a 100644 --- a/Classes/UserFactory/FrontendUserFactory.php +++ b/Classes/UserFactory/FrontendUserFactory.php @@ -72,7 +72,7 @@ protected function findUserByUsernameOrEmail(): ?array public function registerRemoteUser(int $targetPid): ?array { - $doCreateNewUser = isset($this->extendedProviderConfiguration) && $this->extendedProviderConfiguration['createFrontendUser']; + $doCreateNewUser = isset($this->extendedProviderConfiguration[$this->providerId]['createFrontendUser']) && $this->extendedProviderConfiguration[$this->providerId]['createFrontendUser']; // find or optionally create $userRecord = $this->findUserByUsernameOrEmail();