I have an old project written in Symfony 3.4 where I used FOSUserBundle for authenticating users.
Recently I started to upgrade the project to Symfony 6 - quite a long journey where I actually created a new project and copied most of the code from the old project.
Now the last challenge is to let existing users authenticate using their current credentials.
Does anyone have an advice on how to tackle this? How can I use the new Symfony authenticate method (with MakerBundle and Security) but for the passwords and hashing algorithm that FOSUserBundle used?
encoderswas changed tohashers. So you should be able to look in your 3.4 security.yml file, determine the encoding algorithm and parameters and then setup the same for a hasher in 6.x. You will also have to ensure your new User entity implements LegacyPasswordAuthenticatedUserInterface for the salt stuff.bcrypt, no salt was created so I don't need to handle it. Thank you!