Skip to content

Commit

Permalink
Add 'not you' copy to code email (fixes hackclub#980)
Browse files Browse the repository at this point in the history
  • Loading branch information
kognise committed Mar 21, 2023
1 parent bf81543 commit f7870fb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/game-saving/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ export const loginCodeTemplate = (code: string): EmailSpec => ({
html: `
<p>Here's your Sprig login code:</p>
<h1>${code}</h1>
<p><small>(Not you? You can safely ignore this email.)</small></p>
`,
text: `Here's your Sprig login code: ${code}`
text: [
`Here's your Sprig login code: ${code}`,
'',
'(Not you? You can safely ignore this email.)'
].join('\n')
})

export const tempGameTemplate = (user: User, game: Game): EmailSpec => {
Expand Down

0 comments on commit f7870fb

Please sign in to comment.