summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2021-12-23 13:20:43 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-12 12:20:59 +0100
commit9301f08f273f0df136a6d5739ccf2ee4e05aa3a0 (patch)
treeef7a18948f75450f4b6c2e3c0c6c0e9d8efa6006
parent69e8faf8c0d4c58c0e3ee35b074b07cfa6dae759 (diff)
downloadIshtar-9301f08f273f0df136a6d5739ccf2ee4e05aa3a0.tar.bz2
Ishtar-9301f08f273f0df136a6d5739ccf2ee4e05aa3a0.zip
settings: argon2 has the default password hasher
-rw-r--r--example_project/settings.py7
1 files changed, 7 insertions, 0 deletions
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": {