Skip to content

Commit a29cfc9

Browse files
committed
minor tweaks
1 parent 33c69b2 commit a29cfc9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

security/user_provider.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,6 @@ It's not recommended to use this provider in real applications because of its
215215
limitations and how difficult it is to manage users. It may be useful in application
216216
prototypes and for limited applications that don't store users in databases.
217217

218-
.. caution::
219-
220-
When using a ``memory`` provider, the :class:`Symfony\\Component\\Security\\Core\\User\\User`
221-
and not the ``auto`` algorithm, you have to choose an encoding without salt (i.e. ``bcrypt``).
222-
223218
This user provider stores all user information in a configuration file,
224219
including their passwords. That's why the first step is to configure how these
225220
users will encode their passwords:
@@ -291,6 +286,11 @@ Now you can configure all the user information in ``config/packages/security.yam
291286
john_admin: { password: '$2y$13$jxGxc ... IuqDju', roles: ['ROLE_ADMIN'] }
292287
jane_admin: { password: '$2y$13$PFi1I ... rGwXCZ', roles: ['ROLE_ADMIN', 'ROLE_SUPER_ADMIN'] }
293288
289+
.. caution::
290+
291+
When using a ``memory`` provider, and not the ``auto`` algorithm, you have
292+
to choose an encoding without salt (i.e. ``bcrypt``).
293+
294294
.. _security-ldap-user-provider:
295295

296296
LDAP User Provider

0 commit comments

Comments
 (0)