Update username to handle

This commit is contained in:
2025-02-24 13:27:48 +01:00
parent b735bff62e
commit bd6d08a571
9 changed files with 31 additions and 38 deletions
+2 -2
View File
@@ -44,14 +44,14 @@ class UserRepository extends ServiceEntityRepository implements PasswordUpgrader
/**
* Find an User by any of it's unique properties.
*
* @param string $identifier An id, email or username
* @param string $identifier An id, email or handle
*/
public function findOneByIdentifier(string $identifier): ?User
{
return $this->createQueryBuilder('u')
->andWhere('u.id = :val')
->orWhere('u.email = :val')
->orWhere('u.username = :val')
->orWhere('u.handle = :val')
->setParameter('val', $identifier)
->getQuery()
->getOneOrNullResult();