forked from forgejo/forgejo
fix problem with #1879
This commit is contained in:
parent
92535c9df0
commit
75aab86a8d
5 changed files with 223 additions and 222 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue