diff --git a/debian/control b/debian/control index c14ecc298..917026448 100644 --- a/debian/control +++ b/debian/control @@ -79,6 +79,7 @@ Depends: ppp, pppoe, python3-apt, + python3-argon2, python3-augeas, python3-bootstrapform, python3-cherrypy3, diff --git a/plinth/web_framework.py b/plinth/web_framework.py index cb203e1c9..19eee0eac 100644 --- a/plinth/web_framework.py +++ b/plinth/web_framework.py @@ -135,6 +135,12 @@ def init(): 'plinth.modules.first_boot.middleware.FirstBootMiddleware', 'plinth.middleware.SetupMiddleware', ), + PASSWORD_HASHERS=[ + 'django.contrib.auth.hashers.Argon2PasswordHasher', + 'django.contrib.auth.hashers.PBKDF2PasswordHasher', + 'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher', + 'django.contrib.auth.hashers.BCryptSHA256PasswordHasher', + ], ROOT_URLCONF='plinth.urls', SECURE_BROWSER_XSS_FILTER=True, SECURE_CONTENT_TYPE_NOSNIFF=True,