Use Argon2 password hashing.
This commit is contained in:
parent
0a686f48f3
commit
1a95c323d4
2 changed files with 10 additions and 0 deletions
|
@ -1,7 +1,10 @@
|
||||||
|
argon2-cffi>=18.3.0
|
||||||
|
cffi>=1.11.5
|
||||||
dj-database-url>=0.5.0
|
dj-database-url>=0.5.0
|
||||||
Django>=2.1.5
|
Django>=2.1.5
|
||||||
django-authtools>=1.6.0
|
django-authtools>=1.6.0
|
||||||
djangorestframework>=3.9.0
|
djangorestframework>=3.9.0
|
||||||
psycopg2>=2.7.6.1
|
psycopg2>=2.7.6.1
|
||||||
|
pycparser>=2.19
|
||||||
python-decouple>=3.1
|
python-decouple>=3.1
|
||||||
pytz>=2018.9
|
pytz>=2018.9
|
||||||
|
|
|
@ -59,6 +59,13 @@ MIDDLEWARE = [
|
||||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
PASSWORD_HASHERS = [
|
||||||
|
'django.contrib.auth.hashers.Argon2PasswordHasher',
|
||||||
|
'django.contrib.auth.hashers.PBKDF2PasswordHasher',
|
||||||
|
'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
|
||||||
|
'django.contrib.auth.hashers.BCryptSHA256PasswordHasher',
|
||||||
|
]
|
||||||
|
|
||||||
ROOT_URLCONF = 'savepointradio.urls'
|
ROOT_URLCONF = 'savepointradio.urls'
|
||||||
|
|
||||||
SECRET_KEY = config('SECRET_KEY')
|
SECRET_KEY = config('SECRET_KEY')
|
||||||
|
|
Loading…
Reference in a new issue