From fdd87eece2c1c46921daf5d8b59c014346c14a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Skowro=C5=84ski?= Date: Thu, 28 Dec 2023 12:21:17 +0100 Subject: [PATCH] Fix store SteamId on user login --- src/Security/Authenticator/DiscordAuthenticator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Security/Authenticator/DiscordAuthenticator.php b/src/Security/Authenticator/DiscordAuthenticator.php index 0b22f3ac..787f440c 100644 --- a/src/Security/Authenticator/DiscordAuthenticator.php +++ b/src/Security/Authenticator/DiscordAuthenticator.php @@ -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() ;