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
4 changes: 2 additions & 2 deletions build.savant
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ target(name: "compile", description: "Compiles the source code", dependsOn: ["fo

def process = pb.start()
process.consumeProcessOutput(System.out, System.err)
process.waitFor()
assert process.waitFor() == 0
}

target(name: "test", description: "Runs the project's unit tests", dependsOn: ["compile"]) {
Expand All @@ -70,7 +70,7 @@ target(name: "test", description: "Runs the project's unit tests", dependsOn: ["

def process = pb.start()
process.consumeProcessOutput(System.out, System.err)
process.waitFor()
assert process.waitFor() == 0
}

target(name: "int", description: "Releases a local integration build of the project", dependsOn: ["compile"]) {
Expand Down
47 changes: 33 additions & 14 deletions pkg/fusionauth/Domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -5363,13 +5363,14 @@ func (b *RegistrationReportResponse) SetStatus(status int) {
*/
type RegistrationRequest struct {
BaseEventRequest
DisableDomainBlock bool `json:"disableDomainBlock"`
GenerateAuthenticationToken bool `json:"generateAuthenticationToken"`
Registration UserRegistration `json:"registration,omitempty"`
SendSetPasswordEmail bool `json:"sendSetPasswordEmail"`
SkipRegistrationVerification bool `json:"skipRegistrationVerification"`
SkipVerification bool `json:"skipVerification"`
User User `json:"user,omitempty"`
DisableDomainBlock bool `json:"disableDomainBlock"`
GenerateAuthenticationToken bool `json:"generateAuthenticationToken"`
Registration UserRegistration `json:"registration,omitempty"`
SendSetPasswordEmail bool `json:"sendSetPasswordEmail"`
SendSetPasswordIdentityType SendSetPasswordIdentityType `json:"sendSetPasswordIdentityType,omitempty"`
SkipRegistrationVerification bool `json:"skipRegistrationVerification"`
SkipVerification bool `json:"skipVerification"`
User User `json:"user,omitempty"`
}

/**
Expand Down Expand Up @@ -5724,6 +5725,22 @@ type EmailTemplateErrors struct {
RenderErrors map[string]string `json:"renderErrors,omitempty"`
}

/**
* Used to indicate which identity type a password "request" might go to. It could be
* used for send set passwords or send password resets.
*/
type SendSetPasswordIdentityType string

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

const (
SendSetPasswordIdentityType_Email SendSetPasswordIdentityType = "email"
SendSetPasswordIdentityType_Phone SendSetPasswordIdentityType = "phone"
SendSetPasswordIdentityType_DoNotSend SendSetPasswordIdentityType = "doNotSend"
)

/**
* Theme object for values used in the css variables for simple themes.
*
Expand Down Expand Up @@ -6110,6 +6127,7 @@ type TenantPhoneConfiguration struct {
ForgotPasswordTemplateId string `json:"forgotPasswordTemplateId,omitempty"`
MessengerId string `json:"messengerId,omitempty"`
PasswordlessTemplateId string `json:"passwordlessTemplateId,omitempty"`
SetPasswordTemplateId string `json:"setPasswordTemplateId,omitempty"`
Unverified PhoneUnverifiedOptions `json:"unverified,omitempty"`
VerificationCompleteTemplateId string `json:"verificationCompleteTemplateId,omitempty"`
VerificationStrategy VerificationStrategy `json:"verificationStrategy,omitempty"`
Expand Down Expand Up @@ -7483,13 +7501,14 @@ type UserRegistrationVerifiedEvent struct {
*/
type UserRequest struct {
BaseEventRequest
ApplicationId string `json:"applicationId,omitempty"`
CurrentPassword string `json:"currentPassword,omitempty"`
DisableDomainBlock bool `json:"disableDomainBlock"`
SendSetPasswordEmail bool `json:"sendSetPasswordEmail"`
SkipVerification bool `json:"skipVerification"`
User User `json:"user,omitempty"`
VerificationIds []string `json:"verificationIds,omitempty"`
ApplicationId string `json:"applicationId,omitempty"`
CurrentPassword string `json:"currentPassword,omitempty"`
DisableDomainBlock bool `json:"disableDomainBlock"`
SendSetPasswordEmail bool `json:"sendSetPasswordEmail"`
SendSetPasswordIdentityType SendSetPasswordIdentityType `json:"sendSetPasswordIdentityType,omitempty"`
SkipVerification bool `json:"skipVerification"`
User User `json:"user,omitempty"`
VerificationIds []string `json:"verificationIds,omitempty"`
}

/**
Expand Down
7 changes: 7 additions & 0 deletions pkg/fusionauth/Domain_dynamic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,13 @@ func Test_SecureGeneratorTypeImplementsStringer(t *testing.T) {
}
}

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

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