This commit is contained in:
eson 2023-09-05 16:55:02 +08:00
parent 1e837a6a4b
commit 59d11b3d4e

View File

@ -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.';