diff --git a/go/controller/post_signin_passwordless_email_test.go b/go/controller/post_signin_passwordless_email_test.go index 24a9b6867..517303982 100644 --- a/go/controller/post_signin_passwordless_email_test.go +++ b/go/controller/post_signin_passwordless_email_test.go @@ -79,7 +79,7 @@ func TestPostSigninPasswordlessEmail(t *testing.T) { //nolint:maintidx notifications.TemplateNameSigninPasswordless, testhelpers.GomockCmpOpts( notifications.TemplateData{ - Link: "https://local.auth.nhost.run/verify?redirectTo=http%3A%2F%2Flocalhost%3A3000&ticket=passwordlessEmail%3Ab66123b7-ea8b-4afe-a875-f201a2f8b224&type=passwordlessEmail", //nolint:lll + Link: "https://local.auth.nhost.run/verify?redirectTo=http%3A%2F%2Flocalhost%3A3000&ticket=passwordlessEmail%3Ab66123b7-ea8b-4afe-a875-f201a2f8b224&type=signinPasswordless", //nolint:lll DisplayName: "jane@acme.com", Email: "jane@acme.com", NewEmail: "", @@ -262,7 +262,7 @@ func TestPostSigninPasswordlessEmail(t *testing.T) { //nolint:maintidx notifications.TemplateNameSigninPasswordless, testhelpers.GomockCmpOpts( notifications.TemplateData{ - Link: "https://local.auth.nhost.run/verify?redirectTo=http%3A%2F%2Flocalhost%3A3000&ticket=passwordlessEmail%3Ab66123b7-ea8b-4afe-a875-f201a2f8b224&type=passwordlessEmail", //nolint:lll + Link: "https://local.auth.nhost.run/verify?redirectTo=http%3A%2F%2Flocalhost%3A3000&ticket=passwordlessEmail%3Ab66123b7-ea8b-4afe-a875-f201a2f8b224&type=signinPasswordless", //nolint:lll DisplayName: "jane@acme.com", Email: "jane@acme.com", NewEmail: "", @@ -389,7 +389,7 @@ func TestPostSigninPasswordlessEmail(t *testing.T) { //nolint:maintidx notifications.TemplateNameSigninPasswordless, testhelpers.GomockCmpOpts( notifications.TemplateData{ - Link: "https://local.auth.nhost.run/verify?redirectTo=http%3A%2F%2Fmyapp&ticket=passwordlessEmail%3Ac2d0203a-2117-4445-bade-0ed8d5f44f4f&type=passwordlessEmail", //nolint:lll + Link: "https://local.auth.nhost.run/verify?redirectTo=http%3A%2F%2Fmyapp&ticket=passwordlessEmail%3Ac2d0203a-2117-4445-bade-0ed8d5f44f4f&type=signinPasswordless", //nolint:lll DisplayName: "Jane Doe", Email: "jane@acme.com", NewEmail: "", @@ -525,7 +525,7 @@ func TestPostSigninPasswordlessEmail(t *testing.T) { //nolint:maintidx notifications.TemplateNameSigninPasswordless, testhelpers.GomockCmpOpts( notifications.TemplateData{ - Link: "https://local.auth.nhost.run/verify?redirectTo=http%3A%2F%2Flocalhost%3A3000&ticket=passwordlessEmail%3Ab66123b7-ea8b-4afe-a875-f201a2f8b224&type=passwordlessEmail", //nolint:lll + Link: "https://local.auth.nhost.run/verify?redirectTo=http%3A%2F%2Flocalhost%3A3000&ticket=passwordlessEmail%3Ab66123b7-ea8b-4afe-a875-f201a2f8b224&type=signinPasswordless", //nolint:lll DisplayName: "jane@acme.com", Email: "jane@acme.com", NewEmail: "", diff --git a/go/controller/post_user_deanonymize_test.go b/go/controller/post_user_deanonymize_test.go index 92ef3ebf3..63ab64922 100644 --- a/go/controller/post_user_deanonymize_test.go +++ b/go/controller/post_user_deanonymize_test.go @@ -316,7 +316,7 @@ func TestPostUserDeanonymize(t *testing.T) { //nolint:maintidx notifications.TemplateNameSigninPasswordless, testhelpers.GomockCmpOpts( notifications.TemplateData{ - Link: "https://local.auth.nhost.run/verify?redirectTo=http%3A%2F%2Flocalhost%3A3000&ticket=passwordlessEmail%3Ac000a5b3-d3af-4937-aa2e-cc86f19ee565&type=passwordlessEmail", //nolint:lll + Link: "https://local.auth.nhost.run/verify?redirectTo=http%3A%2F%2Flocalhost%3A3000&ticket=passwordlessEmail%3Ac000a5b3-d3af-4937-aa2e-cc86f19ee565&type=signinPasswordless", //nolint:lll DisplayName: "jane@acme.com", Email: "jane@acme.com", NewEmail: "", diff --git a/go/controller/workflows_tickets.go b/go/controller/workflows_tickets.go index 52ef5da2a..510fbbd5d 100644 --- a/go/controller/workflows_tickets.go +++ b/go/controller/workflows_tickets.go @@ -58,7 +58,7 @@ type LinkType string const ( LinkTypeEmailVerify LinkType = "emailVerify" LinkTypeEmailConfirmChange LinkType = "emailConfirmChange" - LinkTypePasswordlessEmail LinkType = "passwordlessEmail" + LinkTypePasswordlessEmail LinkType = "signinPasswordless" LinkTypePasswordReset LinkType = "passwordReset" )