From f97d6608d178ae97785c810b5d041c504ea89daf Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 23 Dec 2021 13:20:43 +0100 Subject: settings: argon2 has the default password hasher --- example_project/settings.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/example_project/settings.py b/example_project/settings.py index 89964fe7e..60db6e53f 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -62,6 +62,13 @@ LOGIN_REDIRECT_URL = "/" + URL_PATH ACCOUNT_ACTIVATION_DAYS = 7 +PASSWORD_HASHERS = [ + 'django.contrib.auth.hashers.Argon2PasswordHasher', + 'django.contrib.auth.hashers.PBKDF2PasswordHasher', + 'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher', + 'django.contrib.auth.hashers.BCryptSHA256PasswordHasher', +] + # change this in local_settings DATABASES = { "default": { -- cgit v1.2.3