Skip to content

Commit e3b29fb

Browse files
committed
added bcrypt algorithm to settings.py & added bcrypt dependency
1 parent b086c79 commit e3b29fb

3 files changed

Lines changed: 51 additions & 6 deletions

File tree

poetry.lock

Lines changed: 42 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

procollab/settings.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@
2525
"api.procollab.ru",
2626
]
2727

28+
PASSWORD_HASHERS = [
29+
"django.contrib.auth.hashers.PBKDF2PasswordHasher",
30+
"django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher",
31+
"django.contrib.auth.hashers.Argon2PasswordHasher",
32+
"django.contrib.auth.hashers.ScryptPasswordHasher",
33+
"django.contrib.auth.hashers.BCryptPasswordHasher",
34+
]
35+
2836
# Application definition
2937
if SENTRY_DSN:
3038
sentry_sdk.init(

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ sentry-sdk = "^1.10.1"
5050
whitenoise = "^6.2.0"
5151
six = "^1.16.0"
5252
aiohttp = "^3.8.3"
53+
django = {extras = ["bcrypt"], version = "^4.1.3"}
5354

5455

5556
[build-system]

0 commit comments

Comments
 (0)