summaryrefslogtreecommitdiffstats
path: root/custom/conf/app.ini.sample
diff options
context:
space:
mode:
authorguillep2k <18600385+guillep2k@users.noreply.github.com>2019-10-16 00:09:58 -0300
committerLunny Xiao <xiaolunwen@gmail.com>2019-10-16 11:09:58 +0800
commit31655aabfc397db203d39b468cad1ecbdc1879db (patch)
tree07bb7133bb4ff74a96abf4c3ab1587e27fdf1298 /custom/conf/app.ini.sample
parent66e99d722a71d12b81264bc3577b85febe40e49e (diff)
downloadgitea-31655aabfc397db203d39b468cad1ecbdc1879db.tar.gz
gitea-31655aabfc397db203d39b468cad1ecbdc1879db.zip
Fix password complexity regex for special characters (on master) (#8525)
* Fix extra space * Fix regular expression * Fix error template name * Simplify check code, fix default values, add test * Fix router tests * Fix fmt * Fix setting and lint * Move cleaning up code to test, improve comments * Tidy up variable declaration
Diffstat (limited to 'custom/conf/app.ini.sample')
-rw-r--r--custom/conf/app.ini.sample3
1 files changed, 2 insertions, 1 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample
index 08a2c8e32f..aa526804f2 100644
--- a/custom/conf/app.ini.sample
+++ b/custom/conf/app.ini.sample
@@ -345,7 +345,8 @@ IMPORT_LOCAL_PATHS = false
; Set to true to prevent all users (including admin) from creating custom git hooks
DISABLE_GIT_HOOKS = false
;Comma separated list of character classes required to pass minimum complexity.
-;If left empty or no valid values are specified, the default values (`lower,upper,digit,spec`) will be used.
+;If left empty or no valid values are specified, the default values ("lower,upper,digit,spec") will be used.
+;Use "off" to disable checking.
PASSWORD_COMPLEXITY = lower,upper,digit,spec
; Password Hash algorithm, either "pbkdf2", "argon2", "scrypt" or "bcrypt"
PASSWORD_HASH_ALGO = pbkdf2