django-passwords icon indicating copy to clipboard operation
django-passwords copied to clipboard

Compatibility with the Django password validators API

Open acdha opened this issue 6 years ago • 2 comments
trafficstars

I recently found a bit of code which had been copied with only slight modifications to use ComplexityValidator in AUTH_PASSWORD_VALIDATORS. Would it be worth tossing together a pull request which adds a compatibility shim for that, similar to the code below?

https://github.com/LibraryOfCongress/concordia/blob/2b8605e388323770fde79975b140bb7c4776c6cb/concordia/validators.py

acdha avatar Dec 06 '18 20:12 acdha

Yes that seems like a good idea! Would you mind creating a PR for this?

maccesch avatar Dec 15 '18 13:12 maccesch

@maccesch I started this in https://github.com/dstufft/django-passwords/pull/54 but it doesn't have the other validators yet because I was debating some of the naming options first.

acdha avatar Dec 20 '18 16:12 acdha