Skip to content
Browse files
Add documentation for password_regexp (#652)
* Add documentation for password_regexp

Co-authored-by: Joan Touzet <>
  • Loading branch information
Terreii and wohali committed Jul 22, 2021
1 parent db2496b commit 7d1704d169bbd7fdbc3717555bdb2fa8bcb397bc
Showing 1 changed file with 19 additions and 0 deletions.
@@ -227,6 +227,25 @@ Authentication Configuration
max_iterations = 100000

.. config:option:: password_regexp :: Password regular expressions
.. versionadded:: 3.2

A list of
`Regular Expressions <>`_
to check new/changed passwords.
When set, new user passwords must **match** all RegExp in this list.

A RegExp can be paired with a *reason text*:
``[{"RegExp", "reason text"}, ...]``.
If a RegExp doesn't match, its *reason text* will be appended to the
default reason of ``Password does not conform to requirements.`` ::

; Password must be 10 chars long and have one or more uppercase and
; lowercase char and one or more numbers.
password_regexp = [{".{10,}", "Min length is 10 chars."}, "[A-Z]+", "[a-z]+", "\\d+"]

.. config:option:: proxy_use_secret :: Force proxy auth to use secret token
.. versionchanged:: 3.2 moved from [couch_httpd_auth] to [chttpd_auth] section

0 comments on commit 7d1704d

Please sign in to comment.