浏览代码

Simplified MinPasswordLength check (#475)

tags/v1.1.0
Bwko 7 年前
父节点
当前提交
c1e92eeb72
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1
    5
      modules/setting/setting.go

+ 1
- 5
modules/setting/setting.go 查看文件

@@ -590,11 +590,7 @@ please consider changing to GITEA_CUSTOM`)
CookieUserName = sec.Key("COOKIE_USERNAME").MustString("gitea_awesome")
CookieRememberName = sec.Key("COOKIE_REMEMBER_NAME").MustString("gitea_incredible")
ReverseProxyAuthUser = sec.Key("REVERSE_PROXY_AUTHENTICATION_USER").MustString("X-WEBAUTH-USER")
MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt()

if MinPasswordLength == 0 {
MinPasswordLength = 6
}
MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt(6)

sec = Cfg.Section("attachment")
AttachmentPath = sec.Key("PATH").MustString(path.Join(AppDataPath, "attachments"))

正在加载...
取消
保存