Improve documentation on generated configuration

This commit is contained in:
Brendan Abolivier 2019-05-21 10:49:44 +01:00
parent 42cea6b437
commit 7dfc3c327c
No known key found for this signature in database
GPG Key ID: 1E015C145F1916CD
2 changed files with 54 additions and 14 deletions

View File

@ -996,14 +996,34 @@ password_config:
#
#pepper: "EVEN_MORE_SECRET"
# Password policy.
# Define and enforce a password policy. Each parameter is optional, boolean
# parameters default to 'false' and integer parameters default to 0.
# This is an early implementation of MSC2000.
#
#policy:
# Whether to enforce the password policy.
#
#enabled: true
# Minimum accepted length for a password.
#
#minimum_length: 15
# Whether a password must contain at least one digit.
#
#require_digit: true
# Whether a password must contain at least one symbol.
# A symbol is any character that's not a number or a letter.
#
#require_symbol: true
# Whether a password must contain at least one lowercase letter.
#
#require_lowercase: true
# Whether a password must contain at least one lowercase letter.
#
#require_uppercase: true

View File

@ -46,13 +46,33 @@ class PasswordConfig(Config):
#
#pepper: "EVEN_MORE_SECRET"
# Password policy.
# Define and enforce a password policy. Each parameter is optional, boolean
# parameters default to 'false' and integer parameters default to 0.
# This is an early implementation of MSC2000.
#
#policy:
# Whether to enforce the password policy.
#
#enabled: true
# Minimum accepted length for a password.
#
#minimum_length: 15
# Whether a password must contain at least one digit.
#
#require_digit: true
# Whether a password must contain at least one symbol.
# A symbol is any character that's not a number or a letter.
#
#require_symbol: true
# Whether a password must contain at least one lowercase letter.
#
#require_lowercase: true
# Whether a password must contain at least one lowercase letter.
#
#require_uppercase: true
"""