I tried this one briefly and did not fix the problem. The password keeps changing.
The other patch looks like it would be the fix but when doing the data-load I get an exception and nothing gets loaded. Need to look further when I get some time. On Tue, Oct 13, 2009 at 11:40 AM, david <da...@inspiredthinking.co.uk>wrote: > > There appears to be another work-around: > http://trac.symfony-project.org/ticket/6196 > > > On Tue, 13 Oct 2009 17:15:08 +0200, Pablo Godel <pgo...@gmail.com> wrote: > > > shouldn't this be applied to the plugin code? > > > > > > On Tue, Oct 13, 2009 at 11:10 AM, david > > <da...@inspiredthinking.co.uk>wrote: > > > >> > >> Checkout: http://forum.symfony-project.org/index.php/m/83831/ for more > >> info > >> > >> On Tue, 13 Oct 2009 16:40:25 +0200, david <da...@inspiredthinking.co.uk > > > >> wrote: > >> > >> > > >> > The password is hashed when it's set - expecting a plaintext password > >> > rather than a hashed one. > >> > There was a post a while ago about this issue - you need to created a > >> > method on the model that skips the hashing process. > >> > > >> > On Tue, 13 Oct 2009 16:35:07 +0200, Pablo Godel <pgo...@gmail.com> > >> wrote: > >> > > >> >> That's what I thought is happening, but since the data-dump is raw > >> that, > >> >> shouldn't data-load load the raw data ? is there any existing method > >> to > >> >> load > >> >> the raw dumped data directly to the DB ? > >> >> > >> >> thanks for your reply. > >> >> > >> >> On Tue, Oct 13, 2009 at 10:19 AM, Gábor Fási <maerl...@gmail.com> > >> wrote: > >> >> > >> >>> > >> >>> The data-dump task exports the raw values found in the database, ie. > >> >>> the encrypted ones. While doing the data-load, the plugin's > >> >>> overwritten setPassword() setter is called, that expect to get a > >> >>> plaintext value, so it encodes it. Your passwords get corrupted > >> >>> because of being encrypted again. > >> >>> > >> >>> On Tue, Oct 13, 2009 at 16:13, 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. > >> >>> > > >> >>> > The passwords are ok in data/fixtures/data.yml but when running > >> >>> data-load > >> >>> I > >> >>> > see the insert queries with a new value. > >> >>> > > >> >>> > Is this a bug? Is there something that I am missing? > >> >>> > > >> >>> > Thanks > >> >>> > > >> >>> > -- > >> >>> > Pablo Godel > >> >>> > > >> >>> > > > >> >>> > > >> >>> > >> >>> > > >> >>> > >> >> > >> >> > >> > > >> > > >> > >> > >> -- > >> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > >> > >> > > >> > > > > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > > > > -- Pablo Godel ServerGrove Networks http://servergrove.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---