Migrating legacy users to symfony2

Viewed 4358

I'm moving from expressionengine to symfony2 and I'm looking for the best way to migrate the user passwords. The goal is to let legacy users log in with their existing credentials, while passwords for new users are created the default way.

I have looked at custom authentication providers and custom user providers and thought about wether or not to create a separate entity for the legacy users, but I don't know what'd be the best way/design to achieve the above.

FYI:

  • As far as I can see, expressionengine just encrypts the password using sha1 and that's it.
  • I am currently using FOSUserBundle.

Can anyone advice me on a solution?

2 Answers
Related