python - Django upgrade from 1.1 to 1.5 auth app password encryption -
i working on upgrade django 1.1 django 1.5 , have followed guide: upgrade django 1.1 1.5.1 apart reading manuals , release notes.
one thing didn't expect though backward incompability of auth app password encryption found out since django 1.4, encryption algorithm has been updated fro using sha1 using pbkdf2.
since have tons of users registered, there no way can ask them recreate accounts. wonder if 1 of have had similar problem , found way around it.
please let me know if there kind of solution users still valid current password.
thanks! ts
have @ docs: https://docs.djangoproject.com/en/1.5/topics/auth/passwords/#how-django-stores-passwords
it says, "when users log in, if passwords stored other preferred algorithm, django automatically upgrade algorithm preferred one. means old installs of django automatically more secure users log in, , means can switch new (and better) storage algorithms invented."
so think if make sure bot sha1 , pbkdf2 in password_hashers
(they default), should work. users still able log in old hash, , django automatically update password new.
if don't want django update passwords automatically, have put sha1 , top of password_hashers
list.
Comments
Post a Comment