Symfony version(s) affected: 5.2.1
Description
When logging in with a username which does not exist using EntityUserProvider in doctrine-bridge the Exception thrown does not contain a username. This causes problems with translating the exception.
How to reproduce
Create a login form with UserEntityProvider from doctrine-bridge and try to login with a username which does not exist.
Possible Solution
Similar to InMemoryUserProvider call setUsername to set the username in the exception.
|
$ex->setUsername($username); |