Skip to content

Commit 99aca45

Browse files
committed
feature #4749 [2.3][Book][Security] Add isPasswordValid doc as in 2.6 (xelaris)
This PR was merged into the 2.3 branch. Discussion ---------- [2.3][Book][Security] Add isPasswordValid doc as in 2.6 | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | >=2.3 | Fixed tickets | As mentioned in #4744 (comment) the paragraph from 2.6 branch is also applicable to 2.3. Commits ------- 0f67a1d [Book][Security] Add isPasswordValid doc as in 2.6
2 parents f4f8621 + 0f67a1d commit 99aca45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: book/security.rst

+4
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,10 @@ In order for this to work, just make sure that you have the encoder for your
11171117
user class (e.g. ``AppBundle\Entity\User``) configured under the ``encoders``
11181118
key in ``app/config/security.yml``.
11191119

1120+
The ``$encoder`` object also has an ``isPasswordValid`` method, which takes
1121+
the ``User`` object as the first argument and the plain password to check
1122+
as the second argument.
1123+
11201124
.. caution::
11211125

11221126
When you allow a user to submit a plaintext password (e.g. registration

0 commit comments

Comments
 (0)