Remove unknown validation_groups

The Profile validation_groups does not exist and then for validation to be skipped (like password length)
This commit is contained in:
Jeremy Benoist
2017-05-30 07:56:41 +02:00
parent 5709ecb368
commit d069bff4f6
2 changed files with 3 additions and 5 deletions

View File

@ -33,9 +33,7 @@ class ManageController extends Controller
// enable created user by default
$user->setEnabled(true);
$form = $this->createForm('Wallabag\UserBundle\Form\NewUserType', $user, [
'validation_groups' => ['Profile'],
]);
$form = $this->createForm('Wallabag\UserBundle\Form\NewUserType', $user);
$form->handleRequest($request);
if ($form->isSubmitted() && $form->isValid()) {