Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
d996c4bb
Unverified
Commit
d996c4bb
authored
Sep 07, 2016
by
Joost Rijneveld
Browse files
Move password hashers to production only
parent
fd5fd222
Changes
2
Hide whitespace changes
Inline
Side-by-side
website/thaliawebsite/settings/production.py
View file @
d996c4bb
...
...
@@ -48,3 +48,11 @@ COMPRESS_PRECOMPILERS = (
COMPRESS_CSS_FILTERS
=
[
'compressor.filters.css_default.CssAbsoluteFilter'
,
'compressor.filters.cssmin.rCSSMinFilter'
]
PASSWORD_HASHERS
=
[
'django.contrib.auth.hashers.Argon2PasswordHasher'
,
'django.contrib.auth.hashers.PBKDF2PasswordHasher'
,
'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher'
,
'django.contrib.auth.hashers.BCryptSHA256PasswordHasher'
,
'django.contrib.auth.hashers.BCryptPasswordHasher'
,
]
website/thaliawebsite/settings/settings.py
View file @
d996c4bb
...
...
@@ -127,14 +127,6 @@ AUTH_PASSWORD_VALIDATORS = [
},
]
PASSWORD_HASHERS
=
[
'django.contrib.auth.hashers.Argon2PasswordHasher'
,
'django.contrib.auth.hashers.PBKDF2PasswordHasher'
,
'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher'
,
'django.contrib.auth.hashers.BCryptSHA256PasswordHasher'
,
'django.contrib.auth.hashers.BCryptPasswordHasher'
,
]
AUTHENTICATION_BACKENDS
=
[
'django.contrib.auth.backends.ModelBackend'
,
'activemembers.backends.CommitteeBackend'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment