diff --git a/CHANGELOG.md b/CHANGELOG.md index 74af357..d959321 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ### Added * add ability to rename file in the file manager ### Fixed +* fix user factory ### Changed ## [1.7.2] - 2022-03-03 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)); }