diff options
author | Unknwon <u@gogs.io> | 2016-01-15 18:39:51 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-01-15 18:39:51 +0800 |
commit | 7ef9a055886574655d9f2be70c957bc16bf30500 (patch) | |
tree | 0f3d46f2d09e16bae1625e6be719773557e23893 /modules | |
parent | c631a4a9b988e63bd8b07dfdeee1f1d4b3ad7d45 (diff) | |
download | gitea-7ef9a055886574655d9f2be70c957bc16bf30500.tar.gz gitea-7ef9a055886574655d9f2be70c957bc16bf30500.zip |
#2179 use Go sub-repo ssh to verify public key content
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/setting.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 0ab0eafaa1..e719153ae2 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -453,8 +453,6 @@ var Service struct { EnableNotifyMail bool EnableReverseProxyAuth bool EnableReverseProxyAutoRegister bool - DisableMinimumKeySizeCheck bool - MinimumKeySizes map[string]int EnableCaptcha bool } @@ -468,14 +466,7 @@ func newService() { Service.EnableCacheAvatar = sec.Key("ENABLE_CACHE_AVATAR").MustBool() Service.EnableReverseProxyAuth = sec.Key("ENABLE_REVERSE_PROXY_AUTHENTICATION").MustBool() Service.EnableReverseProxyAutoRegister = sec.Key("ENABLE_REVERSE_PROXY_AUTO_REGISTRATION").MustBool() - Service.DisableMinimumKeySizeCheck = sec.Key("DISABLE_MINIMUM_KEY_SIZE_CHECK").MustBool() Service.EnableCaptcha = sec.Key("ENABLE_CAPTCHA").MustBool() - - minimumKeySizes := Cfg.Section("service.minimum_key_sizes").Keys() - Service.MinimumKeySizes = make(map[string]int) - for _, key := range minimumKeySizes { - Service.MinimumKeySizes[key.Name()] = key.MustInt() - } } var logLevels = map[string]string{ |