Symfony: Import sfGuardUser Data

Since I need to run ‘symfony propel:build-all-load‘ constantly while developing a Symfony project, to save myself from creating users for sfGuard plugin everytime it’s run, data from related table were dumped then saved as fixture data so that they are automatically loaded when I run the command.

I ran into problem that I’m unable to login after data were imported.

It seems that the encrypted passwords were encrypted again during the import process.

Thankfully i was able to find a forum post with the exact problem. And there is a solution! (just scroll down the page)

Remember to specify the application when ‘build-all-load!

If you’re working on doctrine, the solution can be found here, scroll down the page to comment dated 05/19/09 17:25:44.

Leave a Reply

Your email address will not be published. Required fields are marked *