mirror of
https://github.com/pretix/pretix.git
synced 2026-08-29 13:44:40 +00:00
Change default password hash to argon2id (#4121)
* Change default password hash to argon2id * Install argon2
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ dependencies = [
|
|||||||
"css-inline==0.14.*",
|
"css-inline==0.14.*",
|
||||||
"defusedcsv>=1.1.0",
|
"defusedcsv>=1.1.0",
|
||||||
"dj-static",
|
"dj-static",
|
||||||
"Django==4.2.*",
|
"Django[argon2]==4.2.*",
|
||||||
"django-bootstrap3==24.2",
|
"django-bootstrap3==24.2",
|
||||||
"django-compressor==4.4",
|
"django-compressor==4.4",
|
||||||
"django-countries==7.6.*",
|
"django-countries==7.6.*",
|
||||||
|
|||||||
@@ -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 = [
|
AUTH_PASSWORD_VALIDATORS = [
|
||||||
{
|
{
|
||||||
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
||||||
|
|||||||
Reference in New Issue
Block a user