summaryrefslogtreecommitdiffstats
path: root/modules/context/captcha.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-01-27 22:56:54 +0800
committerGitHub <noreply@github.com>2021-01-27 22:56:54 +0800
commit41c0776568b3fa1bf825439103085146260e16a8 (patch)
tree84237872a82c15ec666a760dd648474fd6ff9ccb /modules/context/captcha.go
parent669ff8e9b1c15d24dd30852588c2dbb3d82e0cd9 (diff)
downloadgitea-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/context/captcha.go')
-rw-r--r--modules/context/captcha.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/context/captcha.go b/modules/context/captcha.go
index 956380ed73..b8540136a1 100644
--- a/modules/context/captcha.go
+++ b/modules/context/captcha.go
@@ -7,6 +7,7 @@ package context
import (
"sync"
+ "code.gitea.io/gitea/modules/cache"
"code.gitea.io/gitea/modules/setting"
"gitea.com/go-chi/captcha"
@@ -21,6 +22,7 @@ func GetImageCaptcha() *captcha.Captcha {
cpt = captcha.NewCaptcha(captcha.Options{
SubURL: setting.AppSubURL,
})
+ cpt.Store = cache.GetCache()
})
return cpt
}