Skip to content

Commit

Permalink
use argon2 as password hasher
Browse files Browse the repository at this point in the history
  • Loading branch information
jeriox committed Jan 8, 2025
1 parent 432be05 commit 63245fe
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 4 deletions.
8 changes: 8 additions & 0 deletions ephios/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,14 @@
},
]

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.ScryptPasswordHasher",
]

AUTHENTICATION_BACKENDS = [
"ephios.extra.permissions.ObjectSupportingModelBackend",
"guardian.backends.ObjectPermissionBackend",
Expand Down
62 changes: 59 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ documentation = "https://docs.ephios.de/en/stable/"

[tool.poetry.dependencies]
python = "^3.10"
Django = "~5.0.9"
Django = {version = "~5.0.10", extras = ["argon2"]}
django-environ = ">=0.11.2,<0.12"
django-guardian = "^2.4.0"
django-ical = "^1.8.3"
Expand Down

0 comments on commit 63245fe

Please sign in to comment.