/** * Email template for password reset * Sends secure password reset link to users */ /** * Generate password reset email content * @param {Object} data - Template data * @param {string} data.firstName - User's first name * @param {string} data.resetLink - Full password reset URL with token * @returns {Object} - Email content with subject, htmlBody, textBody */ function generatePasswordResetEmail(data) { const { firstName, resetLink } = data; const subject = 'Reset your spotlight.cam password'; const htmlBody = `

🔐 Password Reset

Hi ${firstName || 'there'}! 👋

We received a request to reset your password for your spotlight.cam account.

Reset Password

This link will expire in 1 hour.

⚠️ Security Notice
If you didn't request this password reset, please ignore this email. Your password will remain unchanged.
`; const textBody = ` Hi ${firstName || 'there'}! We received a request to reset your password for your spotlight.cam account. Click this link to reset your password: ${resetLink} This link will expire in 1 hour. ⚠️ Security Notice If you didn't request this password reset, please ignore this email. Your password will remain unchanged. --- spotlight.cam - P2P video exchange for dance events This is an automated email. Please do not reply. `; return { subject, htmlBody, textBody }; } module.exports = { generatePasswordResetEmail };