Commit b143754
committed
bug #4744 [Book][Security] Update code example to fit description (xelaris)
This PR was merged into the 2.6 branch.
Discussion
----------
[Book][Security] Update code example to fit description
| Q | A
| ------------- | ---
| Doc fix? | yes
| New docs? | no
| Applies to | >=2.6
| Fixed tickets |
The text mentions an `$encoder` object, which wasn't created in the code example.
In addition, I think the paragraph
> 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.
is also applicable to the 2.3 version (https://github.com/symfony/symfony-docs/blob/2.3/book/security.rst#dynamically-encoding-a-password), where the code example already provides an `$encoder` variable. Should I add it there?
Commits
-------
bd34c6b Update code example to fit description1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1174 | 1174 | | |
1175 | 1175 | | |
1176 | 1176 | | |
1177 | | - | |
1178 | | - | |
| 1177 | + | |
| 1178 | + | |
1179 | 1179 | | |
1180 | 1180 | | |
1181 | 1181 | | |
| |||
0 commit comments