Skip to content

Commit

Permalink
Fix store SteamId on user login (#306)
Browse files Browse the repository at this point in the history
This will:
- title
  • Loading branch information
jskowronski39 authored Jan 8, 2024
2 parents 9ba4259 + 71bab1a commit be576c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Security/Authenticator/DiscordAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function authenticate(Request $request): Passport
Endpoint::bind(Endpoint::USER_CURRENT_CONNECTIONS)
));
$steamConnection = (new ArrayCollection($userConnectionsResponse))
->filter(static fn (\stdClass $connection) => ConnectionsEnum::STEAM === $connection->type)
->filter(static fn (\stdClass $connection) => ConnectionsEnum::STEAM->value === $connection->type)
->first()
;

Expand Down

0 comments on commit be576c7

Please sign in to comment.