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:
449449 User providers load user information and put it into a :class: `Symfony\\ Component\\ Security\\ Core\\ User\\ UserInterface `
450450implementation. If you :doc: `load users from the database </security/entity_provider >`
451451or :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,
453453it gives you a :class: `Symfony\\ Component\\ Security\\ Core\\ User\\ User ` object.
454454
455455Whatever your User class is, you need to tell Symfony what algorithm was
456456used to encode the passwords. In this case, the passwords are just plaintext,
457457but in a second, you'll change this to use ``bcrypt ``.
458458
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+
459464If you refresh now, you'll be logged in! The web debug toolbar even tells
460465you who you are and what roles you have:
461466
You can’t perform that action at this time.
0 commit comments