Skip to content

Commit

Permalink
fix updateSecret
Browse files Browse the repository at this point in the history
  • Loading branch information
MHSanaei committed Mar 12, 2024
1 parent 5dc95f8 commit c9f245c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/html/xui/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@
this.loading(false);
if (msg.success) {
this.user = {};
window.location.replace(basePath + "logout");
window.location.replace;
}
},
async restartPanel() {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit c9f245c

Please sign in to comment.