Merge pull request #121 from thignus/fix-set-username

fix username variable in setUsername
This commit is contained in:
Ajay Ramachandran 2020-08-29 23:05:22 -04:00 committed by GitHub
commit f4afe00f15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ module.exports = function setUsername(req, res) {
let adminUserIDInput = req.query.adminUserID;
if (userID == undefined || userName == undefined || userID === "undefined" || username.length > 50) {
if (userID == undefined || userName == undefined || userID === "undefined" || userName.length > 50) {
//invalid request
res.sendStatus(400);
return;