We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a345a03 commit c1e92eeCopy full SHA for c1e92ee
modules/setting/setting.go
@@ -590,11 +590,7 @@ please consider changing to GITEA_CUSTOM`)
590
CookieUserName = sec.Key("COOKIE_USERNAME").MustString("gitea_awesome")
591
CookieRememberName = sec.Key("COOKIE_REMEMBER_NAME").MustString("gitea_incredible")
592
ReverseProxyAuthUser = sec.Key("REVERSE_PROXY_AUTHENTICATION_USER").MustString("X-WEBAUTH-USER")
593
- MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt()
594
-
595
- if MinPasswordLength == 0 {
596
- MinPasswordLength = 6
597
- }
+ MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt(6)
598
599
sec = Cfg.Section("attachment")
600
AttachmentPath = sec.Key("PATH").MustString(path.Join(AppDataPath, "attachments"))
0 commit comments