Files
auth-backend/src/main/resources/templates/password-reset-email.html
T
2025-11-05 23:30:19 +08:00

113 lines
3.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>密码重置请求</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: #333;
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #f5f5f5;
}
.container {
background-color: #ffffff;
border-radius: 8px;
padding: 40px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.logo {
text-align: center;
margin-bottom: 30px;
}
h1 {
color: #2563eb;
font-size: 24px;
margin-bottom: 20px;
text-align: center;
}
.content {
margin-bottom: 30px;
}
.button {
display: inline-block;
padding: 12px 30px;
background-color: #2563eb;
color: #ffffff;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
text-align: center;
}
.button-container {
text-align: center;
margin: 30px 0;
}
.warning {
background-color: #fef3c7;
border-left: 4px solid #f59e0b;
padding: 15px;
margin: 20px 0;
border-radius: 4px;
}
.footer {
text-align: center;
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #e5e7eb;
font-size: 12px;
color: #6b7280;
}
.link {
word-break: break-all;
color: #2563eb;
text-decoration: none;
}
</style>
</head>
<body>
<div class="container">
<div class="logo">
<h1>🔐 Auth System</h1>
</div>
<h1>密码重置请求</h1>
<div class="content">
<p>您好,<strong th:text="${username}">用户</strong></p>
<p>我们收到了您的密码重置请求。如果这不是您的操作,请忽略此邮件。</p>
<p>要重置您的密码,请点击下面的按钮:</p>
</div>
<div class="button-container">
<a th:href="${resetUrl}" class="button">重置密码</a>
</div>
<div class="content">
<p>或者复制以下链接到浏览器:</p>
<p><a th:href="${resetUrl}" th:text="${resetUrl}" class="link">重置链接</a></p>
</div>
<div class="warning">
<p><strong>⏰ 重要提示:</strong></p>
<ul>
<li>此链接将在 <span th:text="${validMinutes}">60</span> 分钟后失效</li>
<li>为了您的账号安全,请不要将此链接分享给他人</li>
<li>如果您没有请求重置密码,请忽略此邮件</li>
</ul>
</div>
<div class="footer">
<p>此邮件由系统自动发送,请勿直接回复。</p>
<p>© 2025 Auth System. All rights reserved.</p>
</div>
</div>
</body>
</html>