As part of the authentication process, I increment/reset authentication 
tries of the user. And to check this, I get the user from the DB before 
doing the authentication. I think this is causing me the issue. I reset the 
countre of login attempts in an instance of user that is different than the 
returned by authenticate. So, in the DB, the old hash is saved, but I 
return the user with the new hash.

Maybe authenticate() do the save() of the user? If that's true, I'm 
overwriting the new hash with the old one when resetting the counter...

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/37ec169c-9f2f-4887-af42-5a833376f63e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to