debian: use argon2 as default hasher (#77111)
gitea/authentic/pipeline/head This commit looks good
Details
gitea/authentic/pipeline/head This commit looks good
Details
This commit is contained in:
parent
49e7583f04
commit
7be93251e4
|
@ -81,6 +81,7 @@ Package: authentic2-multitenant
|
|||
Architecture: all
|
||||
Depends: adduser,
|
||||
debconf | debconf-2.0,
|
||||
python3-argon2,
|
||||
python3-authentic2 (= ${binary:Version}),
|
||||
python3-django-tenant-schemas (>= 1.5.2.1),
|
||||
python3-hobo,
|
||||
|
|
|
@ -22,6 +22,14 @@ TENANT_SETTINGS_LOADERS = ('hobo.multitenant.settings_loaders.Authentic',) + TEN
|
|||
# Add authentic2 hobo agent
|
||||
INSTALLED_APPS = ('hobo.agent.authentic2',) + INSTALLED_APPS
|
||||
|
||||
# Configure argon2 to be preferred for password hashes
|
||||
PASSWORD_HASHERS = [
|
||||
'django.contrib.auth.hashers.Argon2PasswordHasher',
|
||||
'django.contrib.auth.hashers.PBKDF2PasswordHasher',
|
||||
'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
|
||||
'django.contrib.auth.hashers.BCryptSHA256PasswordHasher',
|
||||
]
|
||||
|
||||
LOGGING['filters'].update(
|
||||
{
|
||||
'cleaning': {
|
||||
|
|
Loading…
Reference in New Issue