Have I Been Pwned? password validator. Inspired by a blog post on the subject.
Install django-pwny:
pip install django-pwnyAdd it to your AUTH_PASSWORD_VALIDATORS:
AUTH_PASSWORD_VALIDATORS = [
...
"pwny.validation.HaveIBeenPwnedValidator",
...
]django-pwny makes use of
pytest-dev/pytest-django to
run tests via pytest.
Assuming dependencies are installed, simply run:
pytestTools used in rendering this package: