Django module meant to allow django users to keep a history of their previously used passwords.
Project description
Django Password History
Django module meant to allow django users to keep a history of their previously used passwords.
📝 Table of Contents
About
Django module meant to allow django users to keep a history of their previously used passwords.
Getting Started
Follow these instructions to install and setup django-password-history in your django project.
Prerequisites
The only prerequisites to installing django-password-history is having django 2 installed in a Python 3 environment.
Installing
The installation process for django password history is very simple. Start by running the following command to install the package.
pip install django-password-history
End with an example of getting some data out of the system or using it for a little demo.
Running Tests
The test suite for this package is a work in progress. The initial sample test can be run by using the following command.
coverage run --source django_password_history runtests.py
Usage
In order to use the system you must add django_password_history to your installed apps in your settings.py file.
INSTALLED_APPS = [
'django_password_history'
]
Next you need to define how many historical passwords you want to compare on to the new password when a password is chanced. The default and max is 5 previous passwords.
PREVIOUS_PASSWORD_COUNT = 3
THe UserPasswordHistory has a one to one relationship with your user model as defined in your settings.py file.
AUTH_USER_MODEL = "users.User"
To import the UserPasswordHistory model add the following to the top of the desired python file.
from django_password_history.models import UserPasswordHistory
Built Using
- Django - Web Framework
- Cookiecutter Django Package - Cookie Cutter Django Package
Authors
- David Graves - Working on behalf of Lender's Cooperative
- Roderick Smith - Working on behalf of Lender's Cooperative
Acknowledgements
- Inspiration
- References
History
1.0.0 (2021-06-21) ++++++++++++++++++
- First release on PyPI.
1.0.3 (2021-12-08) ++++++++++++++++++
- Accommodate tenant architecture by checking for a SiteSettings model to see if previous_password_count has been set.
- Second release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-password-history-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5702f5159d03bced85262edad2612f3331389b2d74e991e86b07945e28360b9d |
|
MD5 | 448c3078ff65368efa9f20460a856f68 |
|
BLAKE2b-256 | c60cdb26ee68c22d45830accac34997205aa497012ff117f3e9173d3c7663e07 |
Hashes for django_password_history-1.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1541fbf835903b9619203952ddad6659ebdcf2414dc98abe84f4a459207fadf |
|
MD5 | 26b5831617e080c08f1942375fbcea1f |
|
BLAKE2b-256 | c7a74dd8e0cdfed76bb7cf4652495f7c934c95bab91c119f3090d5c9930a5870 |