diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index aeede18..cf6ed3e 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -41,6 +41,9 @@ class UserController extends AbstractController $passwordEncoder->encodePassword($user, $user->getPassword()) ); + $user->setActive((bool) $form->get('active')->getData()) + ->setRoles($form->get('roles')->getData()); + $entityManager->persist($user); $entityManager->flush();