Skip to content

Commit

Permalink
Remove debug dump in ProfileBasedRequestOptionsBuilder
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Spomky committed Jun 30, 2024
1 parent f882b4a commit 3da7335
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3da7335

Please sign in to comment.