|
@@ 69-76 (lines=8) @@
|
| 66 |
|
$this->checkingRequirements($data); |
| 67 |
|
|
| 68 |
|
/** @var UserPasswordInterface $user */ |
| 69 |
|
if (null === $user = $this->findByUsername($data['username'])) { |
| 70 |
|
$this->logger->warning( |
| 71 |
|
'security.authentication.form: user not found with criteria {criteria}', |
| 72 |
|
['criteria' => $this->getCriteriaAsSting(['username' => $data['username']])] |
| 73 |
|
); |
| 74 |
|
|
| 75 |
|
throw UserNotFoundException::create(['username' => $data['username']]); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
if (!$this->passwordManager->verify($data['password'], $user->getPassword())) { |
| 79 |
|
$this->logger->warning( |
|
@@ 78-85 (lines=8) @@
|
| 75 |
|
throw UserNotFoundException::create(['username' => $data['username']]); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
if (!$this->passwordManager->verify($data['password'], $user->getPassword())) { |
| 79 |
|
$this->logger->warning( |
| 80 |
|
'security.authentication.form: invalid password for user with criteria {criteria}', |
| 81 |
|
['criteria' => $this->getCriteriaAsSting(['username' => $data['username']])] |
| 82 |
|
); |
| 83 |
|
|
| 84 |
|
throw InvalidPasswordException::create(['username' => $data['username']]); |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
$this->logger->info( |
| 88 |
|
'security.authentication.form: login successful for user with id {id}', ['id' => $user->getId()] |