From 358e33c6eb5ac01ff6b8f736142ef61d49ad2283 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Tue, 5 Sep 2023 17:03:48 +0800 Subject: [PATCH] fix --- fs_template/reset_confirm.tpl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fs_template/reset_confirm.tpl b/fs_template/reset_confirm.tpl index a62e5eaa..575be923 100644 --- a/fs_template/reset_confirm.tpl +++ b/fs_template/reset_confirm.tpl @@ -147,15 +147,11 @@ function resetPassword() { }) .then(response => response.json()) .then(data => { - if (data.code == 200 ) { - document.getElementById('successMessage').innerText = JSON.stringify(data); } else { - console.error('Password reset failed'); document.getElementById('errorMessage').innerText = JSON.stringify(data); } - }) .catch(error => { console.error('Error:', error);