doc: password length configuration wording

This commit is contained in:
Éloi Rivard 2024-12-08 11:58:10 +01:00
parent 940f2ea078
commit bdb61a5b38
No known key found for this signature in database
GPG key ID: 7EDA204EA57DD184
2 changed files with 6 additions and 6 deletions

View file

@ -307,16 +307,16 @@ class CoreSettings(BaseModel):
""" """
MIN_PASSWORD_LENGTH: int = 8 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 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 There is a technical of 4096 characters with the SQL backend.
characters. If the value entered is 0 or None, or greater than 4096, If the value is 0, :data:`None`, or greater than 4096,
then 4096 will be retained. then 4096 will be retained.
""" """

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"