Re: Trigger a django user password change...

2007-08-31 Thread Jens Diemer
Jens Diemer schrieb: > I would like to do something if the django user password has been set or > update. > So i trigger signals.post_save with the User class, like this: > === > from django.db.models import signals >

Re: Trigger a django user password change...

2007-08-08 Thread Jens Diemer
his password. Is there is an other way to trigger a django user password change and get the raw password??? -- Mfg. Jens Diemer A django powered CMS: http://www.pylucid.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &

Re: Trigger a django user password change...

2007-08-02 Thread RajeshD
> > Any better ideas? You could also use the pre_save signal in your first solution (instead of post_save). That will give you the new password before it's saved to the DB. So, you can pull up that user's DB User object and compare the two passwords. Of course, and send a message to the user.

Re: Trigger a django user password change...

2007-08-02 Thread RajeshD
> > One idea is this: > > ===- > > old_passwords = {} > def save_old_pass(sender, instance, signal, *args, **kwargs): > user_obj = instance > old_pass = user_obj.password > old_passwords[user_obj] =

Trigger a django user password change...

2007-08-02 Thread Jens Diemer
I would like to do something if the django user password has been set or update. So i trigger signals.post_save with the User class, like this: === from django.db.models import signals from django.dispatch import