Have I Been Pwned? password validator. Inspired by a blog post on the subject.
Install django-pwny
:
pip install django-pwny
Add 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:
pytest
Tools used in rendering this package: