Skip to content

Fix (Form): Update certificate admin emails#74

Merged
Ethical-Ralph merged 17 commits intodevelopfrom
fix/update-certificate-admin-emails
Jan 28, 2026
Merged

Fix (Form): Update certificate admin emails#74
Ethical-Ralph merged 17 commits intodevelopfrom
fix/update-certificate-admin-emails

Conversation

@IsaiahSama
Copy link
Contributor

Description

Update the MDA email templates for: Birth Certificate, Marriage Certificate, and Death Certificate.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Changes Made

  • get-birth-certificate.hbs
  • get-death-certificate.hbs
  • get-marriage-certificate.hbs
  • email.service.ts: Added titleCase and today helpers

Notes

Testing

  • Manual tests completed
  • Added unit tests
  • Added e2e tests

Related Github Issue(s)/Trello Ticket(s)

MDA Email for Marriage Certificate
MDA Email for Death Certificate
MDA Email for Birth Certificate

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Documentation updated

@amazon-inspector-n-virginia
Copy link

⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done

Handlebars.registerHelper('titleCase', function(...args) {
const values = args.slice(0, -1);
const titled = values.map(str => str.toLowerCase()
.replace(/\b\w/g, (char: string) => char.toUpperCase()))

Choose a reason for hiding this comment

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

Description: Cross-site scripting vulnerability detected. User input is being used in HTML output without proper sanitization.
This could lead to session hijacking, malware installation, or phishing attacks.
Always sanitize and encode user inputs before including them in output using context-appropriate encoding methods.

Severity: High

@amazon-inspector-n-virginia
Copy link

✅ I finished the code review, and left comments with the issues I found.

Copy link
Contributor

@phrogwrld phrogwrld left a comment

Choose a reason for hiding this comment

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

@IsaiahSama you would have to play around these changes I suggested, since I don't know how the email renders

body {
font-family: -apple-system, BlinkMacSystemFont, 'Figtree', 'Segoe UI',
Roboto, 'Helvetica Neue', Arial, sans-serif;
color: #333;
Copy link
Contributor

Choose a reason for hiding this comment

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

for the css reset all fonts are black-00 on figma

Suggested change
color: #333;
color: #000;

@IsaiahSama IsaiahSama marked this pull request as draft January 28, 2026 14:45
@Ethical-Ralph Ethical-Ralph marked this pull request as ready for review January 28, 2026 21:21
@Ethical-Ralph Ethical-Ralph merged commit a382e9e into develop Jan 28, 2026
1 check passed
@Ethical-Ralph Ethical-Ralph deleted the fix/update-certificate-admin-emails branch January 28, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants