2025017a
This commit is contained in:
@@ -695,13 +695,10 @@
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
if (data.success) {
|
||||
// 密码修改成功
|
||||
// 密码修改成功,先执行退出功能,再跳转到登录页面
|
||||
alert(data.message);
|
||||
closeChangePasswordModal();
|
||||
// 跳转到登录页面
|
||||
setTimeout(() => {
|
||||
window.location.href = '{{ url_for('login') }}';
|
||||
}, 1000);
|
||||
// 重定向到退出路由,系统会自动完成退出并跳转到登录页面
|
||||
window.location.href = '{{ url_for('logout') }}';
|
||||
} else if (data.error) {
|
||||
// 显示服务器返回的错误信息
|
||||
showPasswordError(data.error);
|
||||
|
||||
Reference in New Issue
Block a user