Skip to main content

Django Password History

Status GitHub Issues GitHub Pull Requests License


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

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.

1.0.4 (2022-02-08) ++++++++++++++++++

  • Set django admin user fields to autocomplete, and change password fields to read only.
  • Third release on PyPI.

1.0.5 (2022-08-31) ++++++++++++++++++

  • Extend support of password history up to 24 passwords.
  • Fourth release on PyPI.

Release files for django-password-history 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-password-history 1.0.8
File Size Uploaded
django-password-history-1.0.8.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-password-history 1.0.8
File Interpreter ABI Platform
django_password_history-1.0.8-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 19.3 kB

Release files / django-password-history-1.0.8.tar.gz

Download URL django-password-history-1.0.8.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c6550f447315e4ea3fbc8fdff3b3cfc36230baf4016d1698ca7382053531f5a9
BLAKE2b-256 checksum
How to use checksums
460500c294300c8e0b3addb3f0ea6e0a14319ed11ea8c89a684e1fe8b2945d25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.9

Release files / django_password_history-1.0.8-py2.py3-none-any.whl

Download URL django_password_history-1.0.8-py2.py3-none-any.whl
Size 11.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2fd68246c743a8b32e993da25c61963f5a0944429b3584706944d335c612a4bc
BLAKE2b-256 checksum
How to use checksums
f8db37d39b7c8d715c6c72d5809be6adf35daf8a432a7ec0c6fccb7c04ab47db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.9

Release history Release notifications | RSS feed

This release

1.0.8 This release

2 release files

1.0.7

2 release files

1.0.6

1 release file

1.0.4

2 release files

1.0.3

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page