From c9f245cb25678739903d5b295bc8a82c3467c672 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Tue, 12 Mar 2024 16:20:48 +0330 Subject: [PATCH] fix updateSecret --- web/html/xui/settings.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index aac10f2a..0627910a 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -425,7 +425,7 @@ this.loading(false); if (msg.success) { this.user = {}; - window.location.replace(basePath + "logout"); + window.location.replace; } }, async restartPanel() { @@ -462,9 +462,9 @@ async updateSecret() { this.loading(true); const msg = await HttpUtil.post("/panel/setting/updateUserSecret", this.user); - if (msg.success) { + if (msg && msg.obj) { this.user = msg.obj; - window.location.replace(basePath + "logout"); + window.location.replace; } this.loading(false); await this.updateAllSetting();