File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -449,13 +449,18 @@ To fix this, add an ``encoders`` key:
449
449
User providers load user information and put it into a :class: `Symfony\\ Component\\ Security\\ Core\\ User\\ UserInterface `
450
450
implementation. If you :doc: `load users from the database </security/entity_provider >`
451
451
or :doc: `some other source </security/custom_provider >`, you'll
452
- use your own custom User class. But when you use the "in memory" provider type,
452
+ use your own custom User class. But when you use the `` memory `` provider type,
453
453
it gives you a :class: `Symfony\\ Component\\ Security\\ Core\\ User\\ User ` object.
454
454
455
455
Whatever your User class is, you need to tell Symfony what algorithm was
456
456
used to encode the passwords. In this case, the passwords are just plaintext,
457
457
but in a second, you'll change this to use ``bcrypt ``.
458
458
459
+ .. caution ::
460
+
461
+ When using a ``memory `` provider and the :class: `Symfony\\ Component\\ Security\\ Core\\ User\\ User `,
462
+ you have to choose an encoding without salt (i.e. ``bcrypt ``).
463
+
459
464
If you refresh now, you'll be logged in! The web debug toolbar even tells
460
465
you who you are and what roles you have:
461
466
You can’t perform that action at this time.
0 commit comments