Fix logout

This commit is contained in:
Louis Lam
2023-12-09 17:02:14 +08:00
parent 7a0d4fc62a
commit 16a5f2a175
5 changed files with 86 additions and 6 deletions

View File

@@ -211,6 +211,8 @@ export class MainSocketHandler extends SocketHandler {
let user = await doubleCheckPassword(socket, password.currentPassword);
await user.resetPassword(password.newPassword);
server.disconnectAllSocketClient(user.id, socket.id);
callback({
ok: true,
msg: "Password has been updated successfully.",