Commit f35f68c1 authored by IamI's avatar IamI

Fix

parent ae0df575
...@@ -424,12 +424,12 @@ let getUserPermit = function(query, req, res) { ...@@ -424,12 +424,12 @@ let getUserPermit = function(query, req, res) {
if (playingPlayerPool.has(username)) { if (playingPlayerPool.has(username)) {
let info = playingPlayerPool.get(username); let info = playingPlayerPool.get(username);
if (password == info.password) if (password == info.password)
res.json({ permit: true, reason: null }); res.end(JSON.stringify({ permit: true, reason: null }));
else else
res.json({ permit: false, reason: 'Wrong roomname.' }); res.end(JSON.stringify({ permit: false, reason: 'Wrong roomname.' }));
} }
else else
res.json({ permit: false, reason: 'No record in player pool.' }) res.end(JSON.stringify({ permit: false, reason: 'No record in player pool.' }));
} }
let notFoundResponse = function(res) { let notFoundResponse = function(res) {
......
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