Make Argon2 default password hasher

This commit is contained in:
Kumi 2020-02-15 16:01:33 +01:00
parent 431bc2aa88
commit f708db3611
Signed by: kumi
GPG key ID: 6C2B851B15DF1681
2 changed files with 10 additions and 0 deletions

View file

@ -82,6 +82,15 @@ DATABASES = {
}
}
# Password hasher
# https://docs.djangoproject.com/en/3.0/topics/auth/passwords/#how-django-stores-passwords
PASSWORD_HASHERS = [
'django.contrib.auth.hashers.Argon2PasswordHasher',
'django.contrib.auth.hashers.PBKDF2PasswordHasher',
'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
'django.contrib.auth.hashers.BCryptSHA256PasswordHasher',
]
# Password validation
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators

View file

@ -1 +1,2 @@
django[argon2]
mysqlclient