From f89c5e25a9c3bf0d8402a1077f813fdb99952672 Mon Sep 17 00:00:00 2001 From: mathieuHa Date: Sun, 9 Jun 2024 10:47:17 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20fix(validation)=20Replace?= =?UTF-8?q?=20typo=20on=20CaptchaProvider=20config=20validation=20(#176)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/configuration/configuration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/configuration/configuration.go b/pkg/configuration/configuration.go index d7c2b3c..a12f47e 100644 --- a/pkg/configuration/configuration.go +++ b/pkg/configuration/configuration.go @@ -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 }