diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-01-27 22:56:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-27 22:56:54 +0800 |
commit | 41c0776568b3fa1bf825439103085146260e16a8 (patch) | |
tree | 84237872a82c15ec666a760dd648474fd6ff9ccb /modules/setting | |
parent | 669ff8e9b1c15d24dd30852588c2dbb3d82e0cd9 (diff) | |
download | gitea-41c0776568b3fa1bf825439103085146260e16a8.tar.gz gitea-41c0776568b3fa1bf825439103085146260e16a8.zip |
Fix captcha (#14488)
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/cache.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/setting/cache.go b/modules/setting/cache.go index af47bd085a..618be2482a 100644 --- a/modules/setting/cache.go +++ b/modules/setting/cache.go @@ -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") |