|
@@ -89,7 +89,7 @@ |
|
|
block discarded – undo |
|
89
|
89
|
$resolver->setDefaults([ |
|
90
|
90
|
'translator' => null, |
|
91
|
91
|
'includeReset' => false, |
|
92
|
|
- 'constraints' => new Callback(['callback' => function ($data, ExecutionContextInterface $context) { |
|
|
92
|
+ 'constraints' => new Callback(['callback' => function($data, ExecutionContextInterface $context) { |
|
93
|
93
|
if (!isset($data['pass']) && empty($data['uname']) && empty($data['email'])) { |
|
94
|
94
|
$context->buildViolation('Error! You must enter either your username or email address.') |
|
95
|
95
|
->addViolation(); |
Please login to merge, or discard this patch.