From 9547dcc89181f7f270246eda7fd6163b9bf8eafe Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Tue, 5 Sep 2023 16:30:16 +0800 Subject: [PATCH] fix --- fs_template/get_reset_password_html.tpl | 63 +++++++------------------ fs_template/reset_confirm.tpl | 4 +- 2 files changed, 18 insertions(+), 49 deletions(-) diff --git a/fs_template/get_reset_password_html.tpl b/fs_template/get_reset_password_html.tpl index 11dbfc86..843569a3 100644 --- a/fs_template/get_reset_password_html.tpl +++ b/fs_template/get_reset_password_html.tpl @@ -1,47 +1,16 @@ - - - - -Password Reset Request - - - - - - -
- - - - - - - -
-

Password Reset Request

-
-

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:

- - - - -
- - - - -
- Reset Password -
-
-

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 }}

-
-
- - \ No newline at end of file +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: + +Reset Password + +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 }} \ No newline at end of file diff --git a/fs_template/reset_confirm.tpl b/fs_template/reset_confirm.tpl index 239f5f85..8a5d848d 100644 --- a/fs_template/reset_confirm.tpl +++ b/fs_template/reset_confirm.tpl @@ -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'); // 在这里执行其他失败处理逻辑