Skip to content

Commit

Permalink
✏️ fix(validation) Replace typo on CaptchaProvider config validation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuHa committed Jun 9, 2024
1 parent 58946d9 commit f89c5e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/configuration/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f89c5e2

Please sign in to comment.