mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Make captcha and password optional for external accounts (#6606)
This commit is contained in:
		@@ -27,6 +27,8 @@ var Service struct {
 | 
			
		||||
	EnableReverseProxyAutoRegister          bool
 | 
			
		||||
	EnableReverseProxyEmail                 bool
 | 
			
		||||
	EnableCaptcha                           bool
 | 
			
		||||
	RequireExternalRegistrationCaptcha      bool
 | 
			
		||||
	RequireExternalRegistrationPassword     bool
 | 
			
		||||
	CaptchaType                             string
 | 
			
		||||
	RecaptchaSecret                         string
 | 
			
		||||
	RecaptchaSitekey                        string
 | 
			
		||||
@@ -61,6 +63,8 @@ func newService() {
 | 
			
		||||
	Service.EnableReverseProxyAutoRegister = sec.Key("ENABLE_REVERSE_PROXY_AUTO_REGISTRATION").MustBool()
 | 
			
		||||
	Service.EnableReverseProxyEmail = sec.Key("ENABLE_REVERSE_PROXY_EMAIL").MustBool()
 | 
			
		||||
	Service.EnableCaptcha = sec.Key("ENABLE_CAPTCHA").MustBool(false)
 | 
			
		||||
	Service.RequireExternalRegistrationCaptcha = sec.Key("REQUIRE_EXTERNAL_REGISTRATION_CAPTCHA").MustBool(Service.EnableCaptcha)
 | 
			
		||||
	Service.RequireExternalRegistrationPassword = sec.Key("REQUIRE_EXTERNAL_REGISTRATION_PASSWORD").MustBool()
 | 
			
		||||
	Service.CaptchaType = sec.Key("CAPTCHA_TYPE").MustString(ImageCaptcha)
 | 
			
		||||
	Service.RecaptchaSecret = sec.Key("RECAPTCHA_SECRET").MustString("")
 | 
			
		||||
	Service.RecaptchaSitekey = sec.Key("RECAPTCHA_SITEKEY").MustString("")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user