chore: remove all unicode emojis project-wide and sanitize pdf text

This commit is contained in:
DanielS
2026-09-08 00:03:27 +02:00
parent 40b63b3fa9
commit ec11ad8498
11 changed files with 68 additions and 51 deletions

View File

@@ -158,17 +158,17 @@ function get2FAEmailHtml(code: string) {
<div style="background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border-radius: 12px; padding: 16px 20px; margin: 24px 0; border-left: 4px solid #f59e0b;">
<p style="color: #92400e; font-size: 14px; margin: 0; line-height: 1.5;">
⏱️ <strong>Dieser Code ist 15 Minuten gültig.</strong><br>
<strong>Dieser Code ist 15 Minuten gültig.</strong><br>
Falls Sie diese Anmeldung nicht durchgeführt haben, ändern Sie bitte umgehend Ihr Passwort.
</p>
</div>
<p style="color: #64748b; font-size: 13px; line-height: 1.6; margin-top: 24px;">
🔒 Dieser Code dient der Sicherheit Ihres Kontos. Geben Sie ihn niemals an andere Personen weiter.
Dieser Code dient der Sicherheit Ihres Kontos. Geben Sie ihn niemals an andere Personen weiter.
</p>
`
return getBeautifulEmailHtml('🔐 Sicherheitscode', messageHtml)
return getBeautifulEmailHtml('Sicherheitscode', messageHtml)
}
/** Internal: generates code + sends email (no auth check needed) */
@@ -199,7 +199,7 @@ async function send2FACodeInternal(userId: string, deviceHash: string, email: st
// Mail senden
await sendMail({
to: email,
subject: '🔐 Ihr Sicherheitscode CASPOS Shop',
subject: 'Ihr Sicherheitscode CASPOS Shop',
text: `Ihr Sicherheitscode lautet: ${code}\n\nDieser Code ist 15 Minuten gültig.\n\nFalls Sie diese Anmeldung nicht durchgeführt haben, ändern Sie bitte umgehend Ihr Passwort.`,
html: get2FAEmailHtml(code),
})