Update server.js

This commit is contained in:
Yûki Vachot 2021-06-06 14:04:32 +02:00
parent 34a5f703ea
commit 6b9684c6e1

View file

@ -55,6 +55,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{