8000 minor #12983 add note to use the constraint UserPassword (zairigimad) · symfony/symfony-docs@248fe36 · GitHub
[go: up one dir, main page]

Skip to content

Commit 248fe36

Browse files
committed
minor #12983 add note to use the constraint UserPassword (zairigimad)
This PR was submitted for the 5.0 branch but it was squashed and merged into the 3.4 branch instead. Discussion ---------- add note to use the constraint UserPassword add note to use the constraint UserPassword Commits ------- 11593e3 add note to use the constraint UserPassword
2 parents b96705c + 11593e3 commit 248fe36

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

.12983-suspended

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"category":"minor","has_comments":false,"squashed":true,"savepoint":"applypatch"}

reference/constraints/UserPassword.rst

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@ password, but needs to enter their old password for security.
1010
This should **not** be used to validate a login form, since this is
1111
done automatically by the security system.
1212

13-
+----------------+--------------------------------------------------------------------------------------------+
14-
| Applies to | :ref:`property or method <validation-property-target>` |
15-
+----------------+--------------------------------------------------------------------------------------------+
16-
| Options | - `groups`_ |
17-
| | - `message`_ |
18-
| | - `payload`_ |
19-
+----------------+--------------------------------------------------------------------------------------------+
20-
| Class | :class:`Symfony\\Component\\Security\\Core\\Validator\\Constraints\\UserPassword` |
21-
+----------------+--------------------------------------------------------------------------------------------+
22-
| Validator | :class:`Symfony\\Component\\Security\\Core\\Validator\\Constraints\\UserPasswordValidator` |
23-
+----------------+--------------------------------------------------------------------------------------------+
13+
.. note::
14+
15+
In order to use this constraints, you should have installed the
16+
symfony/security-core component with Composer.
17+
18+
========== ===================================================================
19+
Applies to :ref:`property or method <validation-property-target>`
20+
Options - `groups`_
21+
- `message`_
22+
- `payload`_
23+
Class :class:`Symfony\\Component\\Security\\Core\\Validator\\Constraints\\UserPassword`
24+
Validator :class:`Symfony\\Component\\Security\\Core\\Validator\\Constraints\\UserPasswordValidator`
25+
========== ===================================================================
2426

2527
Basic Usage
2628
-----------

0 commit comments

Comments
 (0)
0