From f0d0b563b2e1db1794b9609fb5b0c0eff2bcfe27 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Tue, 5 Sep 2023 16:10:15 +0800 Subject: [PATCH] fix --- fs_template/reset_confirm.tpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fs_template/reset_confirm.tpl b/fs_template/reset_confirm.tpl index 8ced71ad..51cdd754 100644 --- a/fs_template/reset_confirm.tpl +++ b/fs_template/reset_confirm.tpl @@ -141,13 +141,19 @@ function resetPassword() { body: JSON.stringify(data) }) .then(response => { + if (response.ok) { console.log('Password reset successful'); // 在这里执行其他成功处理逻辑 + // 显示成功消息或进行其他操作 + document.getElementById('successMessage').innerText = 'Password reset successful!'; } else { console.error('Password reset failed'); // 在这里执行其他失败处理逻辑 + // 显示失败消息或进行其他操作 + document.getElementById('errorMessage').innerText = 'Password reset failed. Please try again.'; } + }) .catch(error => { console.error('Error:', error);