Skip to content

Commit 69a2d75

Browse files
committed
minor #17616 [Security] Fix invalid yaml for password hashing in test env (kiler129)
This PR was merged into the 5.4 branch. Discussion ---------- [Security] Fix invalid yaml for password hashing in test env The example is missing the `security:` level in yaml example, while it's present everywhere else. Commits ------- 637d688 Fix invalid yaml for password hashing in test env
2 parents f7b2624 + 637d688 commit 69a2d75

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

security/passwords.rst

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -134,19 +134,22 @@ Further in this article, you can find a
134134
.. configuration-block::
135135

136136
.. code-block:: yaml
137-
137+
138138
# config/packages/test/security.yaml
139-
password_hashers:
140-
# Use your user class name here
141-
App\Entity\User:
142-
algorithm: plaintext # disable hashing (only do this in tests!)
143-
144-
# or use the lowest possible values
145-
App\Entity\User:
146-
algorithm: auto # This should be the same value as in config/packages/security.yaml
147-
cost: 4 # Lowest possible value for bcrypt
148-
time_cost: 3 # Lowest possible value for argon
149-
memory_cost: 10 # Lowest possible value for argon
139+
security:
140+
# ...
141+
142+
password_hashers:
143+
# Use your user class name here
144+
App\Entity\User:
145+
algorithm: plaintext # disable hashing (only do this in tests!)
146+
147+
# or use the lowest possible values
148+
App\Entity\User:
149+
algorithm: auto # This should be the same value as in config/packages/security.yaml
150+
cost: 4 # Lowest possible value for bcrypt
151+
time_cost: 3 # Lowest possible value for argon
152+
memory_cost: 10 # Lowest possible value for argon
150153
151154
.. code-block:: xml
152155

0 commit comments

Comments
 (0)