fix user factory
This commit is contained in:
parent
3705435785
commit
a0c0e53816
|
@ -29,7 +29,7 @@ class UserFactory implements FactoryInterface
|
|||
$entity->setEmail($email);
|
||||
}
|
||||
|
||||
if (null !== $email) {
|
||||
if (null !== $password) {
|
||||
$entity->setPassword($this->encoder->encodePassword($entity, $password));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue