aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/settings.py
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-09-08 00:15:09 +0200
committerGravatar Johannes Christ <[email protected]>2018-09-08 00:15:09 +0200
commit17bff58a3c8f1a28052f4da88feb13cb2de56922 (patch)
tree8eb61620ff230077ce3ba703038a745d608672f7 /pysite/settings.py
parentRemove unused imports. (diff)
Use Argon2 for password hashing.
Diffstat (limited to 'pysite/settings.py')
-rw-r--r--pysite/settings.py6
1 files changed, 6 insertions, 0 deletions
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/