mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 23:53:50 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -28,19 +28,15 @@ class UserProvider implements UserProviderInterface
|
||||
try {
|
||||
$user = $this->em->createQuery(sprintf(
|
||||
'SELECT u FROM %s u '
|
||||
. 'WHERE u.usernameCanonical = UNACCENT(LOWER(:pattern)) '
|
||||
. 'OR '
|
||||
. 'u.emailCanonical = UNACCENT(LOWER(:pattern))',
|
||||
.'WHERE u.usernameCanonical = UNACCENT(LOWER(:pattern)) '
|
||||
.'OR '
|
||||
.'u.emailCanonical = UNACCENT(LOWER(:pattern))',
|
||||
User::class
|
||||
))
|
||||
->setParameter('pattern', $username)
|
||||
->getSingleResult();
|
||||
} catch (NoResultException $e) {
|
||||
throw new UsernameNotFoundException(
|
||||
'Bad credentials.',
|
||||
0,
|
||||
$e
|
||||
);
|
||||
throw new UsernameNotFoundException('Bad credentials.', 0, $e);
|
||||
}
|
||||
|
||||
return $user;
|
||||
|
Reference in New Issue
Block a user