Skip to content

Commit

Permalink
add automatic verification threshold field (#390)
Browse files Browse the repository at this point in the history
* add automatic verification threshold field

* add allowLowScoreReactivation field

* rename to RequiredScore
  • Loading branch information
mfrancisc authored Nov 29, 2023
1 parent 9e6527f commit f6c9b7f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
9 changes: 9 additions & 0 deletions api/v1alpha1/toolchainconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
10 changes: 10 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions api/v1alpha1/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f6c9b7f

Please sign in to comment.