Skip to content

fix: add tenantID to email template#17

Merged
ontehfritz merged 2 commits intomainfrom
fix-email-templates-tenant
Jan 17, 2026
Merged

fix: add tenantID to email template#17
ontehfritz merged 2 commits intomainfrom
fix-email-templates-tenant

Conversation

@ontehfritz
Copy link
Contributor

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds tenant ID support to email templates for a multi-tenant authentication system. The tenant ID is now included as a query parameter in verification, magic link, and password reset email URLs to ensure proper tenant context during authentication flows.

Changes:

  • Added TenantID field to Verification, Forgot, and Magic structs in the email service
  • Updated all email template URLs to include tenant ID as a query parameter
  • Modernized HTML formatting and updated copyright years across all templates

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
internal/email/emails.go Added TenantID field to email data structs and included it in template execution
verification.html Added tenant query parameter to verification URLs and updated formatting
magic.html Added tenantID query parameter to magic link URLs and updated formatting
forgot.html Added tenant query parameter to password reset URLs and updated formatting

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ontehfritz ontehfritz merged commit 26d011c into main Jan 17, 2026
5 checks passed
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