Change default password hash to argon2id (#4121)

* Change default password hash to argon2id

* Install argon2
This commit is contained in:
Raphael Michel
2024-05-02 18:22:02 +02:00
committed by GitHub
parent 541b8f5bd6
commit 166b5e4f3b
2 changed files with 8 additions and 1 deletions

View File

@@ -704,6 +704,13 @@ BOOTSTRAP3 = {
},
}
PASSWORD_HASHERS = [
"django.contrib.auth.hashers.Argon2PasswordHasher",
"django.contrib.auth.hashers.PBKDF2PasswordHasher",
"django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher",
"django.contrib.auth.hashers.BCryptSHA256PasswordHasher",
"django.contrib.auth.hashers.ScryptPasswordHasher",
]
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',