- Generate 6-digit code instead of UUID token for password reset - Store in Redis with 15 min TTL (was 1 hour) - Update email template to show code instead of reset link - Update ResetPasswordPayload to accept code instead of token - Update send_password_reset_email to accept code parameter
22 lines
No EOL
667 B
HTML
22 lines
No EOL
667 B
HTML
<!-- Password Reset -->
|
|
<h1 class="email-title">Reset Your Password</h1>
|
|
|
|
<p>Hi {{first_name}},</p>
|
|
<p>
|
|
We received a request to reset your password. Enter the code below to set a
|
|
new password:
|
|
</p>
|
|
|
|
<div style="text-align: center; font-size: 28px; font-weight: bold; letter-spacing: 8px; margin: 30px 0;">
|
|
{{reset_code}}
|
|
</div>
|
|
|
|
<div class="info-box">
|
|
<p class="info-box-title">🔒 Security Notice</p>
|
|
<p style="margin: 0">
|
|
This code will expire in <strong>15 minutes</strong>. If you didn't request
|
|
this, please ignore this email and your password will remain unchanged.
|
|
</p>
|
|
</div>
|
|
|
|
<p>Best regards,<br /><strong>The Nxtgauge Team</strong></p> |