From 8e7595cd34529e7d75e10c24cbb06acaad6e3974 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 12 May 2020 21:07:09 -0400 Subject: [PATCH] Fix adding VIPs --- src/routes/addUserAsVIP.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes/addUserAsVIP.js b/src/routes/addUserAsVIP.js index a5eadd3..29e2d1f 100644 --- a/src/routes/addUserAsVIP.js +++ b/src/routes/addUserAsVIP.js @@ -4,7 +4,6 @@ var config = require('../config.js'); var db = require('../databases/databases.js').db; var getHash = require('../utils/getHash.js'); - module.exports = async function addUserAsVIP (req, res) { let userID = req.query.userID; let adminUserIDInput = req.query.adminUserID; @@ -25,7 +24,7 @@ module.exports = async function addUserAsVIP (req, res) { //hash the userID adminUserIDInput = getHash(adminUserIDInput); - if (adminUserIDInput !== adminUserID) { + if (adminUserIDInput !== config.adminUserID) { //not authorized res.sendStatus(403); return;