Guillaume пре 3 година
родитељ
комит
cc415b9650
1 измењених фајлова са 2 додато и 0 уклоњено
  1. +2
    -0
      ShopBundle/Services/Utils.php

+ 2
- 0
ShopBundle/Services/Utils.php Прегледај датотеку

@@ -30,6 +30,7 @@ use Symfony\Component\HttpClient\HttplugClient;
use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\Validator\Constraints\EqualTo;
use Symfony\Component\Validator\Constraints\NotNull;
use Symfony\Contracts\Translation\TranslatorInterface;

class Utils
@@ -554,6 +555,7 @@ class Utils
'class' => 'special-field'
],
'constraints' => [
new NotNull(),
new EqualTo(['value' => $this->parameterBag->get('app.captcha_value'), 'message' => 'Valeur incorrecte'])
],
]);

Loading…
Откажи
Сачувај