diff --git a/api/v1alpha1/toolchainconfig_types.go b/api/v1alpha1/toolchainconfig_types.go index ab5c90ee..c7843da7 100644 --- a/api/v1alpha1/toolchainconfig_types.go +++ b/api/v1alpha1/toolchainconfig_types.go @@ -441,6 +441,15 @@ type CaptchaConfig struct { // +optional ScoreThreshold *string `json:"scoreThreshold,omitempty"` + // RequiredScore defines the lowest captcha score, below this score the user cannot proceed with the signup process at all. + // Users with captcha score lower than the required one can still be approved manually. + // +optional + RequiredScore *string `json:"requiredScore,omitempty"` + + // AllowLowScoreReactivation specifies whether the reactivation for users with low captcha score (below the RequiredScore) is enabled without the need for manual approval. + // +optional + AllowLowScoreReactivation *bool `json:"allowLowScoreReactivation,omitempty"` + // SiteKey defines the recaptcha site key to use when making recaptcha requests. There can be different ones for different environments. eg. dev, stage, prod // +optional SiteKey *string `json:"siteKey,omitempty"` diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index a89912c6..1c8f2ccf 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -228,6 +228,16 @@ func (in *CaptchaConfig) DeepCopyInto(out *CaptchaConfig) { *out = new(string) **out = **in } + if in.RequiredScore != nil { + in, out := &in.RequiredScore, &out.RequiredScore + *out = new(string) + **out = **in + } + if in.AllowLowScoreReactivation != nil { + in, out := &in.AllowLowScoreReactivation, &out.AllowLowScoreReactivation + *out = new(bool) + **out = **in + } if in.SiteKey != nil { in, out := &in.SiteKey, &out.SiteKey *out = new(string) diff --git a/api/v1alpha1/zz_generated.openapi.go b/api/v1alpha1/zz_generated.openapi.go index 32d6121f..c0c71071 100644 --- a/api/v1alpha1/zz_generated.openapi.go +++ b/api/v1alpha1/zz_generated.openapi.go @@ -428,6 +428,20 @@ func schema_codeready_toolchain_api_api_v1alpha1_CaptchaConfig(ref common.Refere Format: "", }, }, + "requiredScore": { + SchemaProps: spec.SchemaProps{ + Description: "RequiredScore defines the lowest captcha score, below this score the user cannot proceed with the signup process at all. Users with captcha score lower than the required one can still be approved manually.", + Type: []string{"string"}, + Format: "", + }, + }, + "allowLowScoreReactivation": { + SchemaProps: spec.SchemaProps{ + Description: "AllowLowScoreReactivation specifies whether the reactivation for users with low captcha score (below the RequiredScore) is enabled without the need for manual approval.", + Type: []string{"boolean"}, + Format: "", + }, + }, "siteKey": { SchemaProps: spec.SchemaProps{ Description: "SiteKey defines the recaptcha site key to use when making recaptcha requests. There can be different ones for different environments. eg. dev, stage, prod",