diff options
author | luxagraf <sng@luxagraf.net> | 2018-11-02 15:27:51 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-11-02 15:27:51 -0600 |
commit | d7d0526f3d623367986b3cdfe8ba480fdd9f2fb2 (patch) | |
tree | ab951c110b7d2c6046988eb37b0897959f5b6b6c /config | |
parent | 68abc78a9a543697d8f176775a052c1d70e371a4 (diff) |
added support for pwned-passwords-django
Diffstat (limited to 'config')
-rw-r--r-- | config/requirements.txt | 6 | ||||
-rw-r--r-- | config/settings.py | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/config/requirements.txt b/config/requirements.txt index d89255f..6edaadc 100644 --- a/config/requirements.txt +++ b/config/requirements.txt @@ -1,4 +1,6 @@ backcall==0.1.0 +certifi==2018.10.15 +chardet==3.0.4 confusable-homoglyphs==3.2.0 coverage==4.5.1 decorator==4.3.0 @@ -8,6 +10,7 @@ django-registration==3.0 django-storages==1.7.1 django-taggit==0.23.0 Faker==0.9.1 +idna==2.7 ipython==7.1.1 ipython-genutils==0.2.0 jedi==0.13.1 @@ -20,11 +23,14 @@ pkg-resources==0.0.0 prompt-toolkit==2.0.7 psycopg2==2.7.5 ptyprocess==0.6.0 +pwned-passwords-django==1.3.1 Pygments==2.2.0 python-dateutil==2.7.5 python-decouple==3.1 pytz==2018.7 +requests==2.20.0 six==1.11.0 text-unidecode==1.2 traitlets==4.3.2 +urllib3==1.24.1 wcwidth==0.1.7 diff --git a/config/settings.py b/config/settings.py index abe86dd..ef27950 100644 --- a/config/settings.py +++ b/config/settings.py @@ -101,6 +101,13 @@ DATABASES = { AUTH_PASSWORD_VALIDATORS = [ { + 'NAME': 'pwned_passwords_django.validators.PwnedPasswordsValidator', + 'OPTIONS': { + 'error_message': 'We hate to be the bearers of bad news, but that password is known to be compromised', + 'help_message': 'Your password can\'t be a commonly used password.', + } + }, + { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { |