summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-05-22 11:09:42 +0100
committerGitHub <noreply@github.com>2019-05-22 11:09:42 +0100
commit64365fcbdd803ceb21b26d36968cab5791e5ff7f (patch)
treef6a5bf5a3238141380a971c6b64566eaaf85f91d /docs
parentMerge branch 'babolivier/account_validity_expiration_date' into dinsic (diff)
parentTest whole dict instead of individual fields (diff)
downloadsynapse-64365fcbdd803ceb21b26d36968cab5791e5ff7f.tar.xz
Merge pull request #5214 from matrix-org/babolivier/password-policy
Allow server admins to define and enforce a password policy (MSC2000)
Diffstat (limited to 'docs')
-rw-r--r--docs/sample_config.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/sample_config.yaml b/docs/sample_config.yaml

index 8fd699c970..759ea49c5e 100644 --- a/docs/sample_config.yaml +++ b/docs/sample_config.yaml
@@ -1056,6 +1056,36 @@ password_config: # #pepper: "EVEN_MORE_SECRET" + # 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 + # Enable sending emails for notification events or expiry notices