diff options
Diffstat (limited to 'Core/Validator')
-rw-r--r-- | Core/Validator/Constraint/UserPassword.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Core/Validator/Constraint/UserPassword.php b/Core/Validator/Constraint/UserPassword.php index 3279e02..e90d9af 100644 --- a/Core/Validator/Constraint/UserPassword.php +++ b/Core/Validator/Constraint/UserPassword.php @@ -19,9 +19,10 @@ use Symfony\Component\Validator\Constraint; class UserPassword extends Constraint { public $message = 'This value should be the user current password.'; + public $service = 'security.validator.user_password'; public function validatedBy() { - return 'security.validator.user_password'; + return $this->service; } } |