mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
adding email to fake users
This commit is contained in:
parent
2de25bc1af
commit
b7d544f577
@ -64,12 +64,15 @@ class LoadUsers extends AbstractFixture implements OrderedFixtureInterface, Cont
|
||||
|
||||
$user = new User();
|
||||
|
||||
$user->setUsername($username)
|
||||
->setPassword(
|
||||
$this->container->get('security.encoder_factory')
|
||||
->getEncoder($user)
|
||||
->encodePassword('password', $user->getSalt())
|
||||
);
|
||||
$user
|
||||
->setUsername($username)
|
||||
->setPassword(
|
||||
$this->container->get('security.encoder_factory')
|
||||
->getEncoder($user)
|
||||
->encodePassword('password', $user->getSalt())
|
||||
)
|
||||
->setEmail(sprintf("%s@chill.social", \str_replace(' ', '', $username)))
|
||||
;
|
||||
|
||||
foreach ($params['groupCenterRefs'] as $groupCenterRef) {
|
||||
$user->addGroupCenter($this->getReference($groupCenterRef));
|
||||
|
Loading…
x
Reference in New Issue
Block a user