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 = [ ... 'password_policies', ]
Add ‘password_policies.password_validators.ComplexityValidator’ to AUTH_PASSWORD_VALIDATORS like this:
AUTH_PASSWORD_VALIDATORS = [ ... { 'NAME': 'password_policies.password_validation.ComplexityValidator', }, { 'NAME': 'password_policies.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
Close
Hashes for django-password-policies-validator-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ed54d96d8fca350bacb777964c74e6ed110d1ed070623d568a8dd993420ea00 |
|
MD5 | 25cc9977ba3d4679a99342e1d0b0a351 |
|
BLAKE2b-256 | 3552f983665af403b769a2fb332cbb1be0340d06dd672ca5b3d9a7a3fc07ae29 |