summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-05-21 10:49:44 +0100
committerBrendan Abolivier <babolivier@matrix.org>2019-05-21 10:49:44 +0100
commit7dfc3c327c1ac36654a6957c2c19aa9ad2d4d6d0 (patch)
tree32f18a3628e5cb801055895c3b793466cbcaab29 /docs
parentMake error messages more explicit (diff)
downloadsynapse-7dfc3c327c1ac36654a6957c2c19aa9ad2d4d6d0.tar.xz
Improve documentation on generated configuration
Diffstat (limited to 'docs')
-rw-r--r--docs/sample_config.yaml34
1 files changed, 27 insertions, 7 deletions
diff --git a/docs/sample_config.yaml b/docs/sample_config.yaml
index 8b8ebfa3d7..0f3c0f5fd5 100644
--- a/docs/sample_config.yaml
+++ b/docs/sample_config.yaml
@@ -996,15 +996,35 @@ 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:
-   #  enabled: true
-   #  minimum_length: 15
-   #  require_digit: true
-   #  require_symbol: true
-   #  require_lowercase: true
-   #  require_uppercase: true
+      # 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