symfony: import sfGuardUser data

by prettyscripts on 2009-07-03 13:42:43 • Leave a comment »

symfony

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.

Tags: import, symfony

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)