Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web/html
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2024-03-12 15:50:48 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-03-12 15:50:48 +0300
commitc9f245cb25678739903d5b295bc8a82c3467c672 (patch)
tree773faca730e8f1d9a3bacc959e830f4c6b5fbfbf /web/html
parent5dc95f8556dbc9a331726173af7d13c8bec7746c (diff)
fix updateSecret
Diffstat (limited to 'web/html')
-rw-r--r--web/html/xui/settings.html6
1 files 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();