I have a symfony1 application with sfGuardUser plugin. I need to use the same database in my new symfony2 application.
How should I define the password encoder so it match the symfony1 encoded passwords?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you didn’t provide a different encoding algorithm back then Symfony 1.x would use
sha1($salt.$rawPassword). So your PasswordEncoder should look like this:Good luck!