8000 [2.3][Book][Security] Add isPasswordValid doc as in 2.6 by xelaris · Pull Request #4749 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[2.3][Book][Security] Add isPasswordValid doc as in 2.6 #4749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 4, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions book/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
0