From 17bff58a3c8f1a28052f4da88feb13cb2de56922 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Sat, 8 Sep 2018 00:15:09 +0200 Subject: Use Argon2 for password hashing. --- pysite/settings.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pysite') diff --git a/pysite/settings.py b/pysite/settings.py index a3aecf06..ae5074c5 100644 --- a/pysite/settings.py +++ b/pysite/settings.py @@ -141,6 +141,12 @@ AUTH_PASSWORD_VALIDATORS = [ }, ] +PASSWORD_HASHERS = [ + 'django.contrib.auth.hashers.Argon2PasswordHasher', + 'django.contrib.auth.hashers.PBKDF2PasswordHasher', + 'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher' +] + # Internationalization # https://docs.djangoproject.com/en/2.1/topics/i18n/ -- cgit v1.2.3