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 = [
        ...
        'polls',
    ]
  2. 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',
        },
    ]
  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

Built Distribution

File details

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

File metadata

File hashes

Hashes for django-password-policies-validator-0.0.0.tar.gz
Algorithm Hash digest
SHA256 21cae198eeb2dedb5d50515562452f49c212d3b4e92f546789ef43a5384c870f
MD5 30b8fd956a1b828678a5e0a3eecc6767
BLAKE2b-256 8e2f969de4f12af7a1666db91fe92d8681a7972f4e833e6e56a2b21780883125

See more details on using hashes here.

Provenance

File details

Details for the file django_password_policies_validator-0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_password_policies_validator-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6eb405811f3c1d95268ef1f374d39dcc6b8e329a11ea1ce70a84b02ede50d8d2
MD5 fa2a1bd85c5102136b2f1fab7466f71b
BLAKE2b-256 bb07e6fcf30f279c12299e6ef018ec75df07c1b0aa8f1a84e2abb0fffb5cf437

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