Bcrypt support

This commit is contained in:
evgeniy-st 2019-11-08 16:12:43 +03:00
parent 4573233e45
commit b02ccb3b08
2 changed files with 9 additions and 1 deletions

View File

@ -188,6 +188,14 @@ AUTH_PASSWORD_VALIDATORS = [
},
]
PASSWORD_HASHERS = [
'django.contrib.auth.hashers.PBKDF2PasswordHasher',
'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
'django.contrib.auth.hashers.Argon2PasswordHasher',
'django.contrib.auth.hashers.BCryptPasswordHasher',
'django.contrib.auth.hashers.BCryptSHA256PasswordHasher',
]
# Account settings
AUTH_USER_MODEL = 'account.User'
LOGIN_URL = 'admin:login'

View File

@ -1,4 +1,4 @@
Django==2.2.4
Django[bcrypt]==2.2.7
psycopg2-binary==2.8.3
pytz==2019.1
sqlparse==0.3.0