Skip to content

Commit fba60a7

Browse files
lafrikssolderjs
and
solderjs
committed
Update modules/setting/service.go
agreed Co-Authored-By: solderjs <[email protected]>
1 parent ac5e5ca commit fba60a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/setting/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func newService() {
6363
Service.EnableReverseProxyAutoRegister = sec.Key("ENABLE_REVERSE_PROXY_AUTO_REGISTRATION").MustBool()
6464
Service.EnableReverseProxyEmail = sec.Key("ENABLE_REVERSE_PROXY_EMAIL").MustBool()
6565
Service.EnableCaptcha = sec.Key("ENABLE_CAPTCHA").MustBool(false)
66-
Service.RequireExternalRegistrationCaptcha = sec.Key("REQUIRE_EXTERNAL_REGISTRATION_CAPTCHA").MustBool()
66+
Service.RequireExternalRegistrationCaptcha = sec.Key("REQUIRE_EXTERNAL_REGISTRATION_CAPTCHA").MustBool(Service.EnableCaptcha)
6767
Service.RequireExternalRegistrationPassword = sec.Key("REQUIRE_EXTERNAL_REGISTRATION_PASSWORD").MustBool()
6868
Service.CaptchaType = sec.Key("CAPTCHA_TYPE").MustString(ImageCaptcha)
6969
Service.RecaptchaSecret = sec.Key("RECAPTCHA_SECRET").MustString("")

0 commit comments

Comments
 (0)