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
> fro
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
&
>
> 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. O
>
> 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] = old_pas
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 dispa
5 matches
Mail list logo