mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix captcha (#14488)
Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
		@@ -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
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user