Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Commit

Permalink
Add missing field IncludeEmailInRedirect to Ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
kpurdon committed Jan 4, 2021
1 parent d2dcf44 commit 86f712b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
8 changes: 8 additions & 0 deletions management/management.gen.go

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

3 changes: 3 additions & 0 deletions management/ticket.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ type Ticket struct {
// Whether to set the email_verified attribute to true (true) or whether it
// should not be updated
MarkEmailAsVerified *bool `json:"mark_email_as_verified,omitempty"`

// Whether to include the email address as part of the returnUrl in the reset_email (true), or not (false - default).
IncludeEmailInRedirect *bool `json:"includeEmailInRedirect,omitempty"`
}

type TicketManager struct {
Expand Down
9 changes: 5 additions & 4 deletions management/ticket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ func TestTicket(t *testing.T) {
t.Run("ChangePassword", func(t *testing.T) {

v := &Ticket{
ResultURL: auth0.String("https://example.com/change-password"),
UserID: auth0.String(userID),
TTLSec: auth0.Int(3600),
MarkEmailAsVerified: auth0.Bool(true),
ResultURL: auth0.String("https://example.com/change-password"),
UserID: auth0.String(userID),
TTLSec: auth0.Int(3600),
MarkEmailAsVerified: auth0.Bool(true),
IncludeEmailInRedirect: auth0.Bool(true),
}

err = m.Ticket.ChangePassword(v)
Expand Down

0 comments on commit 86f712b

Please sign in to comment.