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(