diff --git a/core/Factory/UserFactory.php b/core/Factory/UserFactory.php index 0218062..da9eae6 100644 --- a/core/Factory/UserFactory.php +++ b/core/Factory/UserFactory.php @@ -29,7 +29,7 @@ class UserFactory implements FactoryInterface $entity->setEmail($email); } - if (null !== $email) { + if (null !== $password) { $entity->setPassword($this->encoder->encodePassword($entity, $password)); }