mirror of
https://github.com/go-gitea/gitea
synced 2025-07-15 23:17:19 +00:00
fix problem with #1879
This commit is contained in:
@@ -453,6 +453,7 @@ func newService() {
|
||||
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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user