Fix captcha (#14488)

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
authored and GitHub committed 2021-01-27 22:56:54 +08:00
1 parent 669ff8e9b1
commit 41c0776568
9 files changed
+30 -49

No files matched your search

+4
View File
@@ -68,6 +68,10 @@ func newCacheService() {
if CacheService.Enabled {
log.Info("Cache Service Enabled")
} else {
log.Warn("Cache Service Disabled so that captcha disabled too")
// captcha depends on cache service
Service.EnableCaptcha = false
}
sec = Cfg.Section("cache.last_commit")