32177
This commit is contained in:
@@ -265,11 +265,71 @@ app.post('/register', async (req, res) => {
|
||||
}
|
||||
|
||||
// Отправка письма с кодом по SMTP
|
||||
// Отправка письма с кодом по SMTP (Футуристичный киберпанк стиль)
|
||||
const mailOptions = {
|
||||
from: '"Smart Nexus" <aptt142@yandex.ru>',
|
||||
to: email,
|
||||
subject: 'Код подтверждения регистрации',
|
||||
html: `<div style="background-color:#050505; color:#fff; font-family:'Montserrat', sans-serif; padding:40px; text-align:center; border-radius:15px; border:1px solid #333;"><h1 style="color:#00f260; margin:0; font-size:2.5rem; text-transform:uppercase; letter-spacing:2px; text-shadow:0 0 20px rgba(0,242,96,0.4);">SMART NEXUS</h1><p style="color:#aaa; margin-top:15px; font-size:1.1rem;">Код подтверждения регистрации</p><div style="background:rgba(255,255,255,0.05); display:inline-block; padding:25px 50px; margin:30px 0; border-radius:15px; border:1px solid rgba(0,242,96,0.3); font-size:3.5rem; font-weight:900; letter-spacing:8px; color:#fff; box-shadow:0 0 30px rgba(0,242,96,0.1);">${verifyCode}</div><p style="color:#555; font-size:0.9rem;">Если это были не вы, просто удалите письмо.</p></div>`
|
||||
subject: '🔑 Код подтверждения регистрации // SMART NEXUS',
|
||||
html: `
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="background-color: #060713; min-width: 100%; margin: 0; padding: 40px 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<!-- Основная стеклянная карточка -->
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="max-width: 500px; background-color: #0b0c15; border: 1px solid rgba(0, 242, 96, 0.25); border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.7);">
|
||||
<!-- Верхняя неоновая полоса градиента -->
|
||||
<tr>
|
||||
<td height="4" style="background: linear-gradient(90deg, #00f260, #0575e6); line-height: 4px; font-size: 1px;"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 40px; text-align: center;">
|
||||
<!-- Технологичный заголовок-протокол -->
|
||||
<div style="font-family: 'Courier New', Courier, monospace; font-size: 11px; color: #00f260; letter-spacing: 3px; margin-bottom: 12px; font-weight: bold; text-transform: uppercase;">
|
||||
[ SECURE AUTHENTICATION SYSTEM ]
|
||||
</div>
|
||||
|
||||
<h1 style="color: #ffffff; font-size: 30px; font-weight: 900; margin: 0 0 5px 0; text-transform: uppercase; letter-spacing: -1px;">
|
||||
SMART NEXUS
|
||||
</h1>
|
||||
|
||||
<p style="font-family: 'Courier New', Courier, monospace; font-size: 10px; color: #0575e6; margin: 0 0 35px 0; letter-spacing: 2px; text-transform: uppercase; font-weight: bold;">
|
||||
CONNECTION STATUS: ESTABLISHED // ID: REG_OVERRIDE
|
||||
</p>
|
||||
|
||||
<hr style="border: 0; border-top: 1px dashed rgba(255,255,255,0.1); margin-bottom: 30px;">
|
||||
|
||||
<!-- Описание -->
|
||||
<p style="color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.6; margin: 0 0 30px 0;">
|
||||
Инициирована процедура верификации учетной записи в системе умного дома <b style="color:#ffffff;">NEXUS</b>.<br>
|
||||
Введите защитный ключ доступа для завершения авторизации:
|
||||
</p>
|
||||
|
||||
<!-- Неоновое поле для самого кода -->
|
||||
<table cellpadding="0" cellspacing="0" border="0" align="center" style="margin-bottom: 35px;">
|
||||
<tr>
|
||||
<td style="background-color: rgba(0, 242, 96, 0.05); border: 1px solid #00f260; border-radius: 16px; padding: 22px 45px; text-align: center; box-shadow: 0 0 25px rgba(0, 242, 96, 0.2);">
|
||||
<span style="font-family: 'Courier New', Courier, monospace; font-size: 42px; font-weight: 900; color: #ffffff; letter-spacing: 12px; margin-left: 12px; text-shadow: 0 0 10px rgba(0,242,96,0.4);">
|
||||
${verifyCode}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<hr style="border: 0; border-top: 1px dashed rgba(255,255,255,0.1); margin-bottom: 25px;">
|
||||
|
||||
<!-- Технический подвал -->
|
||||
<p style="font-family: 'Courier New', Courier, monospace; font-size: 9px; color: rgba(255,255,255,0.3); margin: 0 0 6px 0; text-transform: uppercase; letter-spacing: 1px;">
|
||||
SECURITY ENCRYPTION LEVEL: SHA-256 AUTO-GEN
|
||||
</p>
|
||||
<p style="font-family: 'Courier New', Courier, monospace; font-size: 9px; color: rgba(255,255,255,0.3); margin: 0; text-transform: uppercase; letter-spacing: 1px;">
|
||||
Если это были не вы, просто проигнорируйте это письмо.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
`
|
||||
};
|
||||
|
||||
await transporter.sendMail(mailOptions);
|
||||
|
||||
Reference in New Issue
Block a user