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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ The source HTML for the proposed-address confirmation message is stored at
service topic map so `member.action.email.profile.emailchange.verification`
uses the SendGrid template created from that file.

The template consumes the following substitutions published by
The template consumes the following dynamic template data published by
`EmailChangeService`:

- `subject`: email subject configured as `Topcoder - Email Change Verification`.
Expand Down
1 change: 1 addition & 0 deletions src/api/user/email-change.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ describe('EmailChangeService', () => {
'member.action.email.profile.emailchange.verification',
);
expect(validationCall[1].recipients).toEqual(['new@example.com']);
expect(validationCall[1].version).toBe('v3');
const validationUrl = new URL(
validationCall[1].data.verificationAgreeUrl,
);
Expand Down
1 change: 1 addition & 0 deletions src/api/user/email-change.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ export class EmailChangeService {
verificationDisagreeUrl: cancelUrl,
},
recipients: [email],
version: 'v3',
},
);
}
Expand Down
Loading