Skip to content

fix(fastify): use unprefixed email in duplicate-email warning body#204

Open
semantabhandari wants to merge 1 commit into
mainfrom
fix/duplicate-email-warning-prefix
Open

fix(fastify): use unprefixed email in duplicate-email warning body#204
semantabhandari wants to merge 1 commit into
mainfrom
fix/duplicate-email-warning-prefix

Conversation

@semantabhandari

Copy link
Copy Markdown
Collaborator

The duplicate-email registration warning rendered the internal tenant-namespaced address (_) in the email body instead of the clean email the user typed. In the emailPasswordSignUp override the email is namespaced per tenant before storage, and the warning's templateData.emailId was set from the prefixed input.email rather than the original clean value. The to field was already correct.

Pass originalEmail to templateData.emailId so {{emailId}} renders the raw address. Adds a test asserting the warning's templateData.emailId equals the raw email with no _ prefix, and bumps the version to 0.29.2.

The duplicate-email registration warning rendered the internal
tenant-namespaced address (<accountId>_<email>) in the email body
instead of the clean email the user typed. In the emailPasswordSignUp
override the email is namespaced per tenant before storage, and the
warning's templateData.emailId was set from the prefixed input.email
rather than the original clean value. The `to` field was already
correct.

Pass originalEmail to templateData.emailId so {{emailId}} renders the
raw address. Adds a test asserting the warning's templateData.emailId
equals the raw email with no <accountId>_ prefix, and bumps the version
to 0.29.2.
@semantabhandari
semantabhandari requested a review from uddhab July 7, 2026 04:58
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.

2 participants