This commit is contained in:
eson 2023-09-05 17:03:48 +08:00
parent ed68e274e2
commit 358e33c6eb

View File

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