Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 1 addition & 19 deletions pkg/fusionauth/Domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -5068,25 +5068,6 @@ type RateLimitedRequestConfiguration struct {
TimePeriodInSeconds int `json:"timePeriodInSeconds,omitempty"`
}

/**
* @author Daniel DeGroff
*/
type RateLimitedRequestType string
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


func (e RateLimitedRequestType) String() string {
return string(e)
}

const (
RateLimitedRequestType_FailedLogin RateLimitedRequestType = "FailedLogin"
RateLimitedRequestType_ForgotPassword RateLimitedRequestType = "ForgotPassword"
RateLimitedRequestType_SendEmailVerification RateLimitedRequestType = "SendEmailVerification"
RateLimitedRequestType_SendPasswordless RateLimitedRequestType = "SendPasswordless"
RateLimitedRequestType_SendRegistrationVerification RateLimitedRequestType = "SendRegistrationVerification"
RateLimitedRequestType_SendTwoFactor RateLimitedRequestType = "SendTwoFactor"
RateLimitedRequestType_SendPhoneVerification RateLimitedRequestType = "SendPhoneVerification"
)

/**
* Raw login information for each time a user logs into an application.
*
Expand Down Expand Up @@ -6155,6 +6136,7 @@ type TenantRateLimitConfiguration struct {
ForgotPassword RateLimitedRequestConfiguration `json:"forgotPassword,omitempty"`
SendEmailVerification RateLimitedRequestConfiguration `json:"sendEmailVerification,omitempty"`
SendPasswordless RateLimitedRequestConfiguration `json:"sendPasswordless,omitempty"`
SendPasswordlessPhone RateLimitedRequestConfiguration `json:"sendPasswordlessPhone,omitempty"`
SendPhoneVerification RateLimitedRequestConfiguration `json:"sendPhoneVerification,omitempty"`
SendRegistrationVerification RateLimitedRequestConfiguration `json:"sendRegistrationVerification,omitempty"`
SendTwoFactor RateLimitedRequestConfiguration `json:"sendTwoFactor,omitempty"`
Expand Down
7 changes: 0 additions & 7 deletions pkg/fusionauth/Domain_dynamic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,13 +462,6 @@ func Test_PublicKeyCredentialTypeImplementsStringer(t *testing.T) {
}
}

func Test_RateLimitedRequestTypeImplementsStringer(t *testing.T) {
var enum interface{} = RateLimitedRequestType("Test")
if _, ok := enum.(fmt.Stringer); !ok {
t.Errorf("RateLimitedRequestType does not implement stringer interface\n")
}
}

func Test_ReactorFeatureStatusImplementsStringer(t *testing.T) {
var enum interface{} = ReactorFeatureStatus("Test")
if _, ok := enum.(fmt.Stringer); !ok {
Expand Down