From f2c17f1787a32eaae954f6167d87299e3ffe2ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Thu, 8 Sep 2016 00:02:18 +0200 Subject: [PATCH] Added password hasher settings. Fixed #2354. --- openslides/global_settings.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/openslides/global_settings.py b/openslides/global_settings.py index 949d8e111..4a85eecf2 100644 --- a/openslides/global_settings.py +++ b/openslides/global_settings.py @@ -100,6 +100,15 @@ ALLOWED_HOSTS = ['*'] # Adds all automaticly collected plugins INSTALLED_PLUGINS = collect_plugins() +PASSWORD_HASHERS = [ + 'django.contrib.auth.hashers.PBKDF2PasswordHasher', + 'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher', + 'django.contrib.auth.hashers.Argon2PasswordHasher', + 'django.contrib.auth.hashers.BCryptSHA256PasswordHasher', + 'django.contrib.auth.hashers.BCryptPasswordHasher', + 'django.contrib.auth.hashers.MD5PasswordHasher', # MD5 is only used for inital passwords. +] + TEST_RUNNER = 'openslides.utils.test.OpenSlidesDiscoverRunner' # Config for the REST Framework