mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-01 19:32:34 +02:00
Fix autologin
This commit is contained in:
parent
e34a8e2e4a
commit
6471a4233a
1 changed files with 3 additions and 3 deletions
|
@ -593,15 +593,15 @@ async function sendNotificationList(socket) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function afterLogin(socket, user) {
|
async function afterLogin(socket, user) {
|
||||||
socket.userID = user.id;
|
socket.userID = 0;
|
||||||
socket.join(user.id)
|
socket.join(0)
|
||||||
|
|
||||||
let monitorList = await sendMonitorList(socket)
|
let monitorList = await sendMonitorList(socket)
|
||||||
|
|
||||||
for (let monitorID in monitorList) {
|
for (let monitorID in monitorList) {
|
||||||
sendHeartbeatList(socket, monitorID);
|
sendHeartbeatList(socket, monitorID);
|
||||||
sendImportantHeartbeatList(socket, monitorID);
|
sendImportantHeartbeatList(socket, monitorID);
|
||||||
Monitor.sendStats(io, monitorID, user.id)
|
Monitor.sendStats(io, monitorID, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
sendNotificationList(socket)
|
sendNotificationList(socket)
|
||||||
|
|
Loading…
Add table
Reference in a new issue