Skip to content

Commit b1bbf98

Browse files
committed
Added an explicit setting for the password hashers to use, in order to place the bcrypt hasher first. This makes BCrypt the default hasher. Added the django_password_strength app to installed apps.
- Legacy-Id: 12796
1 parent cbd958e commit b1bbf98

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

ietf/settings.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@
5454
('Ryan Cross', 'rcross@amsl.com'),
5555
)
5656

57+
PASSWORD_HASHERS = [
58+
'django.contrib.auth.hashers.BCryptSHA256PasswordHasher',
59+
'django.contrib.auth.hashers.PBKDF2PasswordHasher',
60+
'django.contrib.auth.hashers.SHA1PasswordHasher',
61+
'django.contrib.auth.hashers.CryptPasswordHasher',
62+
]
63+
5764
ALLOWED_HOSTS = [".ietf.org", ".ietf.org.", "209.208.19.216", "4.31.198.44", ]
5865

5966

@@ -296,11 +303,12 @@ def skip_unreadable_post(record):
296303
'django.contrib.staticfiles',
297304
# External apps
298305
'bootstrap3',
306+
'django_markup',
307+
'django_password_strength',
299308
'djangobwr',
300309
'form_utils',
301310
'tastypie',
302311
'widget_tweaks',
303-
'django_markup',
304312
# IETF apps
305313
'ietf.api',
306314
'ietf.community',
@@ -782,7 +790,6 @@ def skip_unreadable_post(record):
782790
"fields.W342", # Setting unique=True on a ForeignKey has the same effect as using a OneToOneField.
783791
]
784792

785-
786793
# Put the production SECRET_KEY in settings_local.py, and also any other
787794
# sensitive or site-specific changes. DO NOT commit settings_local.py to svn.
788795
from settings_local import * # pyflakes:ignore pylint: disable=wildcard-import

0 commit comments

Comments
 (0)