fix
This commit is contained in:
parent
ebdbd91874
commit
f0d0b563b2
|
@ -141,13 +141,19 @@ function resetPassword() {
|
|||
body: JSON.stringify(data)
|
||||
})
|
||||
.then(response => {
|
||||
|
||||
if (response.ok) {
|
||||
console.log('Password reset successful');
|
||||
// 在这里执行其他成功处理逻辑
|
||||
// 显示成功消息或进行其他操作
|
||||
document.getElementById('successMessage').innerText = 'Password reset successful!';
|
||||
} else {
|
||||
console.error('Password reset failed');
|
||||
// 在这里执行其他失败处理逻辑
|
||||
// 显示失败消息或进行其他操作
|
||||
document.getElementById('errorMessage').innerText = 'Password reset failed. Please try again.';
|
||||
}
|
||||
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error:', error);
|
||||
|
|
Loading…
Reference in New Issue
Block a user