зеркало из https://github.com/mozilla/airmozilla.git
Updated settings local.py with new password hasher settings.
This commit is contained in:
Родитель
c09edd27c4
Коммит
e9373f696f
|
@ -45,11 +45,20 @@ DEV = True
|
|||
|
||||
# # Playdoh ships with sha512 password hashing by default. Bcrypt+HMAC is safer,
|
||||
# # so it is recommended. Please read <https://github.com/fwenzel/django-sha2#readme>,
|
||||
# # then switch this to bcrypt and pick a secret HMAC key for your application.
|
||||
# PWD_ALGORITHM = 'bcrypt'
|
||||
# # uncomment the bcrypt hasher and pick a secret HMAC key for your application.
|
||||
# BASE_PASSWORD_HASHERS = (
|
||||
# 'django_sha2.hashers.BcryptHMACCombinedPasswordVerifier',
|
||||
# 'django_sha2.hashers.SHA512PasswordHasher',
|
||||
# 'django_sha2.hashers.SHA256PasswordHasher',
|
||||
# 'django.contrib.auth.hashers.SHA1PasswordHasher',
|
||||
# 'django.contrib.auth.hashers.MD5PasswordHasher',
|
||||
# 'django.contrib.auth.hashers.UnsaltedMD5PasswordHasher',
|
||||
# )
|
||||
# HMAC_KEYS = { # for bcrypt only
|
||||
# '2011-01-01': 'cheesecake',
|
||||
# }
|
||||
# from django_sha2 import get_password_hashers
|
||||
# PASSWORD_HASHERS = get_password_hashers(BASE_PASSWORD_HASHERS, HMAC_KEYS)
|
||||
|
||||
# Make this unique, and don't share it with anybody. It cannot be blank.
|
||||
SECRET_KEY = ''
|
||||
|
|
Загрузка…
Ссылка в новой задаче