From a0c0e538162018e05274dd094ed406777e9bec32 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 6 Mar 2022 22:08:42 +0100 Subject: [PATCH] fix user factory --- core/Factory/UserFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }