Commit 095761ae authored by nanahira's avatar nanahira

Update main.js

parent 5c89cddb
Pipeline #42321 passed with stages
in 30 seconds
......@@ -559,6 +559,7 @@ let endUserPermit = function(query, res) {
}
}
if (info) {
/*
if (password == info.password) {
// There is a bug. Should check if server is an array.
// But since now we have only one server for each arena..
......@@ -570,6 +571,9 @@ let endUserPermit = function(query, res) {
}
else
res.end(JSON.stringify({ permit: false, reason: 'Wrong roomname.' }));
*/
// we allow any reasons whenever it really is inside
res.end(JSON.stringify({ permit: true, reason: null }));
}
else
res.end(JSON.stringify({ permit: false, reason: 'No record in player pool.' }));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment