From 11593e3265cc8d74babe8e2883386188f39b06f3 Mon Sep 17 00:00:00 2001 From: Zairig Imad Date: Fri, 24 Jan 2020 22:02:20 +0100 Subject: [PATCH] add note to use the constraint UserPassword --- .12983-suspended | 1 + reference/constraints/UserPassword.rst | 24 +++++++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 .12983-suspended diff --git a/.12983-suspended b/.12983-suspended new file mode 100644 index 00000000000..d93d3af5df1 --- /dev/null +++ b/.12983-suspended @@ -0,0 +1 @@ +{"category":"minor","has_comments":false,"squashed":true,"savepoint":"applypatch"} \ No newline at end of file diff --git a/reference/constraints/UserPassword.rst b/reference/constraints/UserPassword.rst index 310e46d5192..abb98a11e58 100644 --- a/reference/constraints/UserPassword.rst +++ b/reference/constraints/UserPassword.rst @@ -10,17 +10,19 @@ password, but needs to enter their old password for security. This should **not** be used to validate a login form, since this is done automatically by the security system. -+----------------+--------------------------------------------------------------------------------------------+ -| Applies to | :ref:`property or method ` | -+----------------+--------------------------------------------------------------------------------------------+ -| Options | - `groups`_ | -| | - `message`_ | -| | - `payload`_ | -+----------------+--------------------------------------------------------------------------------------------+ -| Class | :class:`Symfony\\Component\\Security\\Core\\Validator\\Constraints\\UserPassword` | -+----------------+--------------------------------------------------------------------------------------------+ -| Validator | :class:`Symfony\\Component\\Security\\Core\\Validator\\Constraints\\UserPasswordValidator` | -+----------------+--------------------------------------------------------------------------------------------+ +.. note:: + + In order to use this constraints, you should have installed the + symfony/security-core component with Composer. + +========== =================================================================== +Applies to :ref:`property or method ` +Options - `groups`_ + - `message`_ + - `payload`_ +Class :class:`Symfony\\Component\\Security\\Core\\Validator\\Constraints\\UserPassword` +Validator :class:`Symfony\\Component\\Security\\Core\\Validator\\Constraints\\UserPasswordValidator` +========== =================================================================== Basic Usage -----------