fix
This commit is contained in:
parent
9dc0aa5131
commit
9547dcc891
|
@ -1,47 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Password Reset Request</title>
|
||||
</head>
|
||||
<body>
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="600" style="max-width: 600px;">
|
||||
<tr>
|
||||
<td align="center" bgcolor="#007BFF" style="padding: 40px 0;">
|
||||
<h1 style="color: #FFFFFF;">Password Reset Request</h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#FFFFFF" style="padding: 40px;">
|
||||
<p>Dear {{ .UserName }},</p>
|
||||
<p>We have received your request to reset the password for your {{ .CompanyName }} account.</p>
|
||||
<p>To proceed with the password reset, please click the button below:</p>
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ .ConfirmationLink }}" target="_blank" style="background-color: #007BFF; border-radius: 3px; color: #FFFFFF; display: inline-block; font-size: 16px; line-height: 48px; text-align: center; text-decoration: none; width: 200px;">Reset Password</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>Please note that this password reset confirmation link will expire in 60 minutes. If you have any further questions, feel free to reach out to us.</p>
|
||||
<p>Regards,<br>
|
||||
{{ .SenderName }}<br>
|
||||
{{ .SenderTitle }}<br>
|
||||
{{ .CompanyName }}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Subject: Password Reset Request for Your {{ .CompanyName }} Account
|
||||
|
||||
Dear {{ .UserName }},
|
||||
|
||||
We have received your request to reset the password for your {{ .CompanyName }} account.
|
||||
|
||||
To proceed with the password reset, please click the button below to open the Reset Password page:
|
||||
|
||||
<a href="{{ .ConfirmationLink }}" target="_blank" style="color: #FFFFFF; text-decoration: none;">Reset Password</a>
|
||||
|
||||
Please note that this password reset confirmation link will expire in 60 minutes. If you have any further questions, feel free to reach out to us.
|
||||
|
||||
Regards,
|
||||
{{ .SenderName }}
|
||||
{{ .SenderTitle }}
|
||||
{{ .CompanyName }}
|
|
@ -147,11 +147,11 @@ function resetPassword() {
|
|||
})
|
||||
.then(response => {
|
||||
|
||||
if (response.ok) {
|
||||
if (response.ok && response.data.code == 200) {
|
||||
console.log('Password reset successful');
|
||||
// 在这里执行其他成功处理逻辑
|
||||
// 显示成功消息或进行其他操作
|
||||
document.getElementById('successMessage').innerText = 'Password reset successful!';
|
||||
document.getElementById('successMessage').innerText = response.data;
|
||||
} else {
|
||||
console.error('Password reset failed');
|
||||
// 在这里执行其他失败处理逻辑
|
||||
|
|
Loading…
Reference in New Issue
Block a user