From 7a43fe1a1eced97114edb406aff7be814d969de7 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Date: Tue, 15 Jan 2019 15:50:49 +0100 Subject: [PATCH] Use Argon2 as default password hasher --- vpnmanager/settings.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vpnmanager/settings.py b/vpnmanager/settings.py index 34aee4a..d9ff86d 100644 --- a/vpnmanager/settings.py +++ b/vpnmanager/settings.py @@ -111,3 +111,12 @@ LOGIN_REDIRECT_URL = '/' LOGOUT_REDIRECT_URL = '/' DEFAULT_FROM_EMAIL = 'VPN360 Administration ' + +# Password hasher -> set to Argon2 + +PASSWORD_HASHERS = [ + 'django.contrib.auth.hashers.Argon2PasswordHasher', + 'django.contrib.auth.hashers.PBKDF2PasswordHasher', + 'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher', + 'django.contrib.auth.hashers.BCryptSHA256PasswordHasher', +]