forked from forgejo/forgejo
Fix captcha (#14488)
Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
parent
669ff8e9b1
commit
41c0776568
9 changed files with 30 additions and 49 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue