diff options
author | Unknwon <u@gogs.io> | 2015-11-02 14:01:19 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-02 14:01:19 -0500 |
commit | 75aab86a8dcc008f7da5fa76e4637c1839263fc2 (patch) | |
tree | 5165e40e6fd52d88d22539e325854fb6d1eaff4c /modules/setting | |
parent | 92535c9df02cc9b25bdbbc4fab766218fe8a8834 (diff) | |
download | gitea-75aab86a8dcc008f7da5fa76e4637c1839263fc2.tar.gz gitea-75aab86a8dcc008f7da5fa76e4637c1839263fc2.zip |
fix problem with #1879
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index c2c124f8a1..a3527b6b89 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -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() } |