diff --git a/app/src/Server.js b/app/src/Server.js index 60b9009..401af64 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -255,7 +255,7 @@ io.on('connection', (socket) => { }; if (data.password == roomList.get(socket.room_id).getPassword()) { roomData.room = roomList.get(socket.room_id).toJson(); - roomData.password = 'OK' + roomData.password = 'OK'; roomList.get(socket.room_id).sendTo(socket.id, 'roomPassword', roomData); } else { roomList.get(socket.room_id).sendTo(socket.id, 'roomPassword', roomData); diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index ef41c95..606f11a 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -2079,7 +2079,7 @@ class RoomClient { this.RoomPassword = pwd; }, }).then(() => { - data.password = this.RoomPassword; + data.password = this.RoomPassword; this.socket.emit('roomAction', data); this.roomStatus(action); }); @@ -2099,7 +2099,7 @@ class RoomClient { case 'lock': this.sound('locked'); this.event(_EVENTS.roomLock); - this.userLog('info', '🔒 LOCKED the room with the password: ' + this.RoomPassword, 'top-end'); + this.userLog('info', '🔒 LOCKED the room by the password', 'top-end'); break; case 'unlock': this.event(_EVENTS.roomUnlock); @@ -2113,7 +2113,7 @@ class RoomClient { case 'OK': this.joinAllowed(data.room); break; - case 'KO': + case 'KO': this.roomIsLocked(); break; } @@ -2148,7 +2148,7 @@ class RoomClient { let data = { action: 'checkPassword', password: this.RoomPassword, - } + }; this.socket.emit('roomAction', data); }); }