fix: always update encrypted password
This avoids issues with changed passwords or encryption keys
This commit is contained in:
@@ -87,11 +87,12 @@ class BpnAuthenticator extends AbstractLoginFormAuthenticator implements Authent
|
||||
$userRepository = $this->entityManager->getRepository(User::class);
|
||||
|
||||
if (null === $user = $userRepository->findOneBy(['email' => $email])) {
|
||||
$user = new User($email, $encryptedPassword);
|
||||
$user = new User($email);
|
||||
$this->entityManager->persist($user);
|
||||
}
|
||||
|
||||
$user
|
||||
->setPassword($encryptedPassword)
|
||||
->setPersonId($personId)
|
||||
->setAddressId($addressId)
|
||||
->setRoles($roles)
|
||||
|
||||
Reference in New Issue
Block a user