Update server.js

This commit is contained in:
Yûki Vachot 2021-06-06 14:04:56 +02:00
parent 6b9684c6e1
commit 837a7391e6

View file

@ -74,6 +74,7 @@ io.on('connection',socket => {
auth.getSession(socket.request, function(res){
const getUsername = auth.getUsername(res);
if (getUsername === -1) {
console.log('not authenticated',getUsername);
socket.send('error','not authenticated');
}
else{