From 3da7335d420069432defe77e0c1308fedfc3d7a5 Mon Sep 17 00:00:00 2001 From: Florent Morselli Date: Sun, 30 Jun 2024 17:06:19 +0200 Subject: [PATCH] Remove debug dump in ProfileBasedRequestOptionsBuilder The update removes a debug dump in the ProfileBasedRequestOptionsBuilder. This dump was outputting the results of the fake credential generator if it's defined in cases when a --- .../ProfileBasedRequestOptionsBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/symfony/src/CredentialOptionsBuilder/ProfileBasedRequestOptionsBuilder.php b/src/symfony/src/CredentialOptionsBuilder/ProfileBasedRequestOptionsBuilder.php index 839ae496..e0658324 100644 --- a/src/symfony/src/CredentialOptionsBuilder/ProfileBasedRequestOptionsBuilder.php +++ b/src/symfony/src/CredentialOptionsBuilder/ProfileBasedRequestOptionsBuilder.php @@ -73,7 +73,7 @@ public function getFromRequest( $userEntity = $optionsRequest->username === null ? null : $this->userEntityRepository->findOneByUsername( $optionsRequest->username ); - dump($this->fakeCredentialGenerator?->generate($request, $optionsRequest->username ?? '')); + $allowedCredentials = match (true) { $userEntity === null && $optionsRequest->username === null, $userEntity === null && $optionsRequest->username !== null && $this->fakeCredentialGenerator === null => [], $userEntity === null && $optionsRequest->username !== null && $this->fakeCredentialGenerator !== null => $this->fakeCredentialGenerator->generate(