Make Argon2 default password hasher
This commit is contained in:
parent
431bc2aa88
commit
f708db3611
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
django[argon2]
|
||||
mysqlclient
|
||||
|
|
Loading…
Reference in a new issue