Skip to content

Commit

Permalink
fix: disable zxcvbn for Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Nov 6, 2024
1 parent a23a9b3 commit 6c4ef02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 0 additions & 4 deletions canaille/core/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,16 +302,12 @@ class = "logging.handlers.WatchedFileHandler"
MIN_PASSWORD_LENGTH: int = 8
"""Minimum length for user password.
Defaults to 8.
It is possible not to set a minimum, by entering None or 0.
"""

MAX_PASSWORD_LENGTH: int = 1000
"""Maximum length for user password.
Defaults to 1000.
There is a technical limit with passlib used by sql database of 4096
characters. If the value entered is 0 or None, or greater than 4096,
then 4096 will be retained.
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ front = [
"pycountry >= 23.12.7",
"pytz >= 2022.7",
"toml >= 0.10.0",
"zxcvbn-rs-py >= 0.1.1",
# zxcvbn does not support Python 3.13 yet
# This leads to Canaille installation to fail in some situations.
# https://github.com/fief-dev/zxcvbn-rs-py/issues/2
"zxcvbn-rs-py >= 0.1.1; python_version<'3.13'",
]

oidc = [
Expand Down
4 changes: 2 additions & 2 deletions uv.lock

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

0 comments on commit 6c4ef02

Please sign in to comment.