mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-04-20 15:46:02 -04:00
Fix autologin
This commit is contained in:
parent
e34a8e2e4a
commit
6471a4233a
@ -593,15 +593,15 @@ async function sendNotificationList(socket) {
|
||||
}
|
||||
|
||||
async function afterLogin(socket, user) {
|
||||
socket.userID = user.id;
|
||||
socket.join(user.id)
|
||||
socket.userID = 0;
|
||||
socket.join(0)
|
||||
|
||||
let monitorList = await sendMonitorList(socket)
|
||||
|
||||
for (let monitorID in monitorList) {
|
||||
sendHeartbeatList(socket, monitorID);
|
||||
sendImportantHeartbeatList(socket, monitorID);
|
||||
Monitor.sendStats(io, monitorID, user.id)
|
||||
Monitor.sendStats(io, monitorID, 0)
|
||||
}
|
||||
|
||||
sendNotificationList(socket)
|
||||
|
Loading…
x
Reference in New Issue
Block a user