mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-06 23:17:28 +08:00
Add loginRequired
SocketIO event (#4636)
This commit is contained in:
@@ -1535,6 +1535,7 @@ let needSetup = false;
|
||||
await afterLogin(socket, await R.findOne("user"));
|
||||
socket.emit("autoLogin");
|
||||
} else {
|
||||
socket.emit("loginRequired");
|
||||
log.debug("auth", "need auth");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user