diff --git a/controllers/uploadController.js b/controllers/uploadController.js index 6b398cc..f9abf50 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -32,7 +32,9 @@ uploadsController.upload = function(req, res, next){ if(config.private === true) if(token === undefined) return res.status(401).json({ success: false, description: 'No token provided' }) - // Let's see if it's a valid token + // If there is no token then just leave it blank so the query fails + if(token === undefined) token = '' + db.table('users').where('token', token).then((user) => { let userid if(user.length > 0) diff --git a/pages/home.html b/pages/home.html index 43a3e2c..256c856 100644 --- a/pages/home.html +++ b/pages/home.html @@ -1,7 +1,7 @@ - loli-safe - A self hosted upload service + loli-safe - A small safe worth protecting. @@ -27,7 +27,7 @@

- + Check

@@ -48,7 +48,7 @@
diff --git a/pages/panel.html b/pages/panel.html index 68443a2..a0860cc 100644 --- a/pages/panel.html +++ b/pages/panel.html @@ -53,7 +53,7 @@