mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
Merge pull request #121 from thignus/fix-set-username
fix username variable in setUsername
This commit is contained in:
commit
f4afe00f15
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue