From 59d11b3d4e745dd39ec7ab540c757b230420256e Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Tue, 5 Sep 2023 16:55:02 +0800 Subject: [PATCH] fix --- fs_template/reset_confirm.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs_template/reset_confirm.tpl b/fs_template/reset_confirm.tpl index c63a5ae8..ceb896ce 100644 --- a/fs_template/reset_confirm.tpl +++ b/fs_template/reset_confirm.tpl @@ -148,8 +148,8 @@ function resetPassword() { .then(response => { if (response.ok ) { - console.log(response.data); - document.getElementById('successMessage').innerText = response.data.msg; + console.log(response); + document.getElementById('successMessage').innerText = JSON.stringify(response); } else { console.error('Password reset failed'); document.getElementById('errorMessage').innerText = 'Password reset failed. Please try again.';