Comment tweaks

This commit is contained in:
2021-03-06 14:52:18 +11:00
parent dccf55c973
commit e3e5af4af0
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ const router = express.Router();
//middleware
router.use((req, res, next) => {
//make sure the account is an admin
if (req.cookies['admin'] !== process.env.SESSION_ADMIN) {
if (req.cookies['admin'] !== process.env.SESSION_ADMIN) { //TODO: Eew not good.
return res.status(401).send('invalid admin status');
} else {
next();