django-fire
django-fire is a toolbox for invalidating users password when user's password is exposed or password hashing algorithm is cracked.
Quickstart
If you need to invalidate your users' password fast, follow the instructions.
- install packages
$ pip install django-fire
- add django_fire app to your project
# settings.py
# ...
INSTALLED_APPS = (
# ...
'django_fire',
# ...
)
- calling command
firepassword
invalidate users' password
$ python manage.py firepassword --all # if all your passwords are exposed.
$ python manage.py firepassword --users 1 2 3 # for specific users
$ python manage.py firepassword --hashers md5 crypt # for hashers (NOT IMPLEMENTED)
- After invalidating passwords, add auth backend to notice users
# settings.py
AUTHENTICATION_BACKENDS = [
# ...
# Users (whose password invalidated) are failed to login and
# see announcement for password reset.
'django_fire.backends.FiredPasswordBackend',
]