mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-11 04:59:05 +08:00
Feat: Refresh login token for the client initiating password change (#4214)
This commit is contained in:
@@ -177,6 +177,12 @@ export default {
|
||||
this.password.currentPassword = "";
|
||||
this.password.newPassword = "";
|
||||
this.password.repeatNewPassword = "";
|
||||
|
||||
// Update token of the current session
|
||||
if (res.token) {
|
||||
this.$root.storage().token = res.token;
|
||||
this.$root.socket.token = res.token;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user