Symfony2 MySQL password encoding
I’m migrating a legacy application bit by bit to Symfony2, to aid maintainability and to provide a stable environment for adding tests. As part of the migration, the users will have a couple of different applications to log into, with the Symfony2 application gradually becoming the more dominant one of the two. I wanted to keep the authentication details the same across both applications naturally, so that it wouldn’t cause users too much hassle during the migration. The legacy application uses the MySQL
PASSWORD() function for passwords sadly, and Symfony2 doesn’t support this out of the box that I could see.