✏️ fix(validation) Replace typo on CaptchaProvider config validation (#176)

This commit is contained in:
mathieuHa
2024-06-09 10:47:17 +02:00
committed by GitHub
parent 58946d9fa2
commit f89c5e25a9

View File

@@ -332,7 +332,7 @@ func validateParamsRequired(config *Config) error {
return errors.New("CrowdsecLapiScheme: must be one of 'http' or 'https'")
}
if !contains([]string{"", HcaptchaProvider, RecaptchaProvider, TurnstileProvider}, config.CaptchaProvider) {
return errors.New("CrowdsecLapiScheme: must be one of 'hcaptcha', 'recaptcha' or 'turnstile'")
return errors.New("CaptchaProvider: must be one of 'hcaptcha', 'recaptcha' or 'turnstile'")
}
return nil
}