From 3a9626d04a641a1ccb48747b27107223d2ace9a7 Mon Sep 17 00:00:00 2001 From: PouyaAmani Date: Fri, 22 Dec 2023 09:28:17 +0100 Subject: [PATCH] ANCH-1401 fix loadUserByIdentifier infinite loop --- README.markdown | 2 ++ Security/User/PropelUserProvider.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 165f4b2f..82fcc614 100644 --- a/README.markdown +++ b/README.markdown @@ -15,6 +15,8 @@ As `Propel2` will be released in the near future, we are migrating the branching * The `2.0` branch contains `Propel2` integration for Symfony *2.5-2.8*. * The `3.0` branch contains `Propel2` integration for Symfony *2.8-3.x*. * The `4.0` branch contains `Propel2` integration for Symfony *3.4-4.x*. +* The `5.0` branch contains `Propel2` integration for Symfony *5.4.x*. +* The `6.0` branch contains `Propel2` integration for Symfony *6.3.x*. ## Features diff --git a/Security/User/PropelUserProvider.php b/Security/User/PropelUserProvider.php index 30c4cbb2..714ac7ac 100644 --- a/Security/User/PropelUserProvider.php +++ b/Security/User/PropelUserProvider.php @@ -103,6 +103,6 @@ public function supportsClass($class): bool public function loadUserByIdentifier(string $identifier): UserInterface { - return $this->loadUserByIdentifier($identifier); + return $this->loadUserByUsername($identifier); } }