fix
This commit is contained in:
parent
1e837a6a4b
commit
59d11b3d4e
@ -148,8 +148,8 @@ function resetPassword() {
|
|||||||
.then(response => {
|
.then(response => {
|
||||||
|
|
||||||
if (response.ok ) {
|
if (response.ok ) {
|
||||||
console.log(response.data);
|
console.log(response);
|
||||||
document.getElementById('successMessage').innerText = response.data.msg;
|
document.getElementById('successMessage').innerText = JSON.stringify(response);
|
||||||
} else {
|
} else {
|
||||||
console.error('Password reset failed');
|
console.error('Password reset failed');
|
||||||
document.getElementById('errorMessage').innerText = 'Password reset failed. Please try again.';
|
document.getElementById('errorMessage').innerText = 'Password reset failed. Please try again.';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user