diff options
Diffstat (limited to 'modules/context/captcha.go')
-rw-r--r-- | modules/context/captcha.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/context/captcha.go b/modules/context/captcha.go index b8540136a1..6117d30713 100644 --- a/modules/context/captcha.go +++ b/modules/context/captcha.go @@ -13,8 +13,10 @@ import ( "gitea.com/go-chi/captcha" ) -var imageCaptchaOnce sync.Once -var cpt *captcha.Captcha +var ( + imageCaptchaOnce sync.Once + cpt *captcha.Captcha +) // GetImageCaptcha returns global image captcha func GetImageCaptcha() *captcha.Captcha { |