Skip to content

Commit cb1315c

Browse files
committed
[Reference] [UserPassword] Add a note concerning the namespace change
1 parent 405b15f commit cb1315c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

reference/constraints/UserPassword.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ UserPassword
44
.. versionadded:: 2.1
55
This constraint is new in version 2.1.
66

7+
.. note::
8+
9+
The `UserPassword` constraint class is defined in the
10+
`Symfony\Component\Security\Core\Validator\Constraints` namespace since
11+
Symfony 2.2. The `UserPassword` defined in the
12+
`Symfony\Component\Security\Core\Validator\Constraint` namespace is
13+
deprecated and will be removed in Symfony 2.3.
14+
715
This validates that an input value is equal to the current authenticated
816
user's password. This is useful in a form where a user can change his password,
917
but needs to enter his old password for security.

0 commit comments

Comments
 (0)