From bdb61a5b38bbb28852615ec8d1e368742d6bf855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Sun, 8 Dec 2024 11:58:10 +0100 Subject: [PATCH] doc: password length configuration wording --- canaille/core/configuration.py | 10 +++++----- canaille/translations/messages.pot | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/canaille/core/configuration.py b/canaille/core/configuration.py index 4fdd6feb..aa670f60 100644 --- a/canaille/core/configuration.py +++ b/canaille/core/configuration.py @@ -307,16 +307,16 @@ class = "logging.handlers.WatchedFileHandler" """ MIN_PASSWORD_LENGTH: int = 8 - """Minimum length for user password. + """User password minimum length. - It is possible not to set a minimum, by entering None or 0. + If 0 or :data:`None`, password won't have a minimum length. """ MAX_PASSWORD_LENGTH: int = 1000 - """Maximum length for user password. + """User password maximum length. - 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, + There is a technical of 4096 characters with the SQL backend. + If the value is 0, :data:`None`, or greater than 4096, then 4096 will be retained. """ diff --git a/canaille/translations/messages.pot b/canaille/translations/messages.pot index bbc0572e..7f888421 100644 --- a/canaille/translations/messages.pot +++ b/canaille/translations/messages.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-12-08 11:32+0100\n" +"POT-Creation-Date: 2024-12-08 11:58+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n"