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', +]