mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-08 12:37:00 +03:00
Locked the username for undefined.
This commit is contained in:
2
index.js
2
index.js
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user