mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-14 01:35:55 +09:00
fix problem with #1879
This commit is contained in:
1 parent
92535c9df0
commit
75aab86a8d
5 files changed
+223
-222
No files matched your search
+219
-219
File diff suppressed because it is too large.
Load diff
@@ -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