Fix reset-password email sending undefined as email field; v2.0.11
Publish Container / docker (push) Has been cancelled

Was passing data.hosts[idx].username (doesn't exist on stored hosts)
instead of data.hosts[idx].email for the welcome/reset email username param.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 4.6 committed 2026-09-08 14:41:41 -04:00
1 parent 4940e53a98
commit ce12ae1d0d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -349,7 +349,7 @@ export function register(app) {
sendNuggetsHostWelcomeEmail({
to: data.hosts[idx].email,
name: data.hosts[idx].name,
username: data.hosts[idx].username,
username: data.hosts[idx].email,
password: newPassword,
portalUrl: `${process.env.SITE_URL ?? 'https://versebyversewithnate.us'}/host`,
}).catch(err => console.error('[nuggets-host] reset email error:', err))