Skip to content

Commit

Permalink
Use bcrypt to store passwords and IP address hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
fallen committed Feb 13, 2019
1 parent 07f83c6 commit e995d0a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pytition/pytition/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

PASSWORD_HASHERS = [
'django.contrib.auth.hashers.BCryptSHA256PasswordHasher',
'django.contrib.auth.hashers.BCryptPasswordHasher',
'django.contrib.auth.hashers.PBKDF2PasswordHasher',
'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
'django.contrib.auth.hashers.Argon2PasswordHasher',
]

ROOT_URLCONF = 'pytition.urls'

TEMPLATES = [
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ django-widget-tweaks==1.4.3
beautifulsoup4~=4.6.3
django-formtools==2.1
coverage==4.5.2
bcrypt

0 comments on commit e995d0a

Please sign in to comment.