Add loginRequired SocketIO event (#4636)

This commit is contained in:
BigBoot 2024-04-21 20:39:44 +02:00 committed by GitHub
parent 29575343ca
commit bab427f715
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 18 deletions

View file

@ -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");
}