A Django app to validate password complexity and prevent users from reusing previous passwords.
Project description
django-password-policies-validator is a Django app to validate password complexity and prevent users from reusing previous passwords.
Quick start
Add “password_policies” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'polls', ]
Add ‘password_policies.password_validators.ComplexityValidator’ to AUTH_PASSWORD_VALIDATORS like this:
AUTH_PASSWORD_VALIDATORS = [ ... { 'NAME': 'kuanli.password_validation.ComplexityValidator', }, { 'NAME': 'kuanli.password_validation.RepeatedValidator', }, ]
Run python manage.py migrate to create the PasswordRecord models.
Start the development server and go to the “Change password” page to check how the new password policies applied.
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
File details
Details for the file django-password-policies-validator-0.0.0.tar.gz
.
File metadata
- Download URL: django-password-policies-validator-0.0.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21cae198eeb2dedb5d50515562452f49c212d3b4e92f546789ef43a5384c870f |
|
MD5 | 30b8fd956a1b828678a5e0a3eecc6767 |
|
BLAKE2b-256 | 8e2f969de4f12af7a1666db91fe92d8681a7972f4e833e6e56a2b21780883125 |
Provenance
File details
Details for the file django_password_policies_validator-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: django_password_policies_validator-0.0.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eb405811f3c1d95268ef1f374d39dcc6b8e329a11ea1ce70a84b02ede50d8d2 |
|
MD5 | fa2a1bd85c5102136b2f1fab7466f71b |
|
BLAKE2b-256 | bb07e6fcf30f279c12299e6ef018ec75df07c1b0aa8f1a84e2abb0fffb5cf437 |