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

This commit is contained in:
mhx
2024-06-09 10:46:35 +02:00
parent 58946d9fa2
commit 50b56ed9f8

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
}