format fix and copy additional parameters into polylith sample

This commit is contained in:
dxl 2022-10-28 09:48:28 +08:00
parent 90a9db2fea
commit 9e21fc557e
4 changed files with 33 additions and 27 deletions

View file

@ -337,7 +337,7 @@ func validateRecaptcha(
response string,
clientip string,
) *util.JSONResponse {
ip,_ ,_ := net.SplitHostPort(clientip)
ip, _, _ := net.SplitHostPort(clientip)
if !cfg.RecaptchaEnabled {
return &util.JSONResponse{
Code: http.StatusConflict,

View file

@ -175,7 +175,13 @@ client_api:
recaptcha_public_key: ""
recaptcha_private_key: ""
recaptcha_bypass_secret: ""
recaptcha_siteverify_api: ""
# To use hcaptcha.com instead of ReCAPTCHA, set the following parameters, otherwise just keep them empty.
# recaptcha_siteverify_api: "https://hcaptcha.com/siteverify"
# recaptcha_api_js_url: "https://js.hcaptcha.com/1/api.js"
# recaptcha_form_field: "h-captcha-response"
# recaptcha_sitekey_class: "h-captcha"
# TURN server information that this homeserver should send to clients.
turn: