mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-27 03:21:12 -04:00
Add loginRequired
SocketIO event (#4636)
This commit is contained in:
parent
29575343ca
commit
bab427f715
2 changed files with 11 additions and 18 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue