Skip to main content

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

  1. Add “password_policies” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'password_policies',
    ]
  2. 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',
        },
    ]
  3. Run python manage.py migrate to create the PasswordRecord models.

  4. Start the development server and go to the “Change password” page to check how the new password policies applied.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

File details

Details for the file django-password-policies-validator-0.2.0.tar.gz.

File metadata

File hashes

Hashes for django-password-policies-validator-0.2.0.tar.gz
Algorithm Hash digest
SHA256 85a341908cf9d2fd710d3b07f564c470a32c533bc847ff10620185e7a71c276b
MD5 3026f65126d8a9b927d8390030aacb82
BLAKE2b-256 35dde66e44db85f3e5aa35227409b109818d6823aaa747f771fb420b436674da

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page