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);