1
0
Fork 0
forked from forgejo/forgejo

fix problem with #1879

This commit is contained in:
Unknwon 2015-11-02 14:01:19 -05:00
parent 92535c9df0
commit 75aab86a8d
5 changed files with 223 additions and 222 deletions

View file

@ -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()
}