fix validation for create user command (#709)

This commit is contained in:
Kevin Papst
2019-04-17 00:20:38 +02:00
committed by GitHub
parent 3251b26d9e
commit 48f3ad842d
2 changed files with 15 additions and 3 deletions

View File

@@ -111,7 +111,7 @@ class CreateUserCommand extends Command
$pwd = $this->encoder->encodePassword($user, $user->getPlainPassword());
$user->setPassword($pwd);
$errors = $this->validator->validate($user, null, ['registration']);
$errors = $this->validator->validate($user, null, ['Registration']);
if ($errors->count() > 0) {
/** @var \Symfony\Component\Validator\ConstraintViolation $error */
foreach ($errors as $error) {