diff --git a/book/security.rst b/book/security.rst index e9dc4df6826..713d291b8ce 100644 --- a/book/security.rst +++ b/book/security.rst @@ -1117,6 +1117,10 @@ In order for this to work, just make sure that you have the encoder for your user class (e.g. ``AppBundle\Entity\User``) configured under the ``encoders`` key in ``app/config/security.yml``. +The ``$encoder`` object also has an ``isPasswordValid`` method, which takes +the ``User`` object as the first argument and the plain password to check +as the second argument. + .. caution:: When you allow a user to submit a plaintext password (e.g. registration
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: