On Oct 13, 3:13 pm, Pablo Godel <pgo...@gmail.com> wrote: > I am using sfDoctrineGuard plugin. When I run doctrine:data-dump and then > data-load the passwords which are encripted by default with sha1 get > corrupted.
As others have said, sfGuard's setPassword method is called by the data-load task, and re-hashes the password. Two possible solutions: 1. Override setPassword yourself and make it skip the hashing if the input looks like a hashed password. This is pretty straightforward, and you can go a little step further and check the environment to see if it's being called by the data-load task. 2. Create a new method on sfGuardUser that sets the password field without hashing (e.g. setPasswordHashed), then do a search & replace in your fixture file to change 'password' to whatever you called your new method (e.g. passwordHashed). This is my recommendation - you won't have to worry about setPassword overwriting the salt from the fixture, and there's less chance of something going wrong elsewhere in your app (or worse, making some of your passwords less safe than others). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---