diff options
author | techknowlogick <techknowlogick@gitea.io> | 2023-08-21 15:27:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-21 19:27:50 +0000 |
commit | b3f713717407fcb66515a7a702e81b2028800f76 (patch) | |
tree | 659d47cf53867f6ae8f6608625898d993a7b492c /modules/setting | |
parent | 02a45e8d581eb484906c684e505f1b4d417a2b03 (diff) | |
download | gitea-b3f713717407fcb66515a7a702e81b2028800f76.tar.gz gitea-b3f713717407fcb66515a7a702e81b2028800f76.zip |
Update minimum password length requirements (#25946)
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/security.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/security.go b/modules/setting/security.go index 7064d7a008..90f614d4cd 100644 --- a/modules/setting/security.go +++ b/modules/setting/security.go @@ -124,7 +124,7 @@ func loadSecurityFrom(rootCfg ConfigProvider) { ReverseProxyTrustedProxies = []string{"127.0.0.0/8", "::1/128"} } - MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt(6) + MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt(8) ImportLocalPaths = sec.Key("IMPORT_LOCAL_PATHS").MustBool(false) DisableGitHooks = sec.Key("DISABLE_GIT_HOOKS").MustBool(true) DisableWebhooks = sec.Key("DISABLE_WEBHOOKS").MustBool(false) |