Locked the username for undefined.

This commit is contained in:
Ajay Ramachandran
2019-08-22 16:15:13 -04:00
parent 58d3699a06
commit 1b4767cd38

View File

@@ -282,7 +282,7 @@ app.post('/api/setUsername', function (req, res) {
let userID = req.query.userID;
let userName = req.query.username;
if (userID == undefined || userName == undefined) {
if (userID == undefined || userName == undefined || userID === "undefined") {
//invalid request
res.sendStatus(400);
return;