aboutsummaryrefslogtreecommitdiff
path: root/controllers/galleryController.js
diff options
context:
space:
mode:
authorkanadeko <[email protected]>2017-01-16 04:56:56 -0300
committerkanadeko <[email protected]>2017-01-16 04:56:56 -0300
commit3777c014659d4182869335685e75b24458c1a990 (patch)
tree0669ab6213ca496a908f9f4417dded2b8f982120 /controllers/galleryController.js
parentPrint and save tokens (diff)
downloadhost.fuwn.me-3777c014659d4182869335685e75b24458c1a990.tar.xz
host.fuwn.me-3777c014659d4182869335685e75b24458c1a990.zip
Little fix
Diffstat (limited to 'controllers/galleryController.js')
-rw-r--r--controllers/galleryController.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/controllers/galleryController.js b/controllers/galleryController.js
index 4fd7c49..8bcdd1e 100644
--- a/controllers/galleryController.js
+++ b/controllers/galleryController.js
@@ -6,7 +6,7 @@ let galleryController = {}
galleryController.list = function(req, res, next){
if(config.TOKEN === true)
- if(req.headers.auth === config.clientToken)
+ if(req.headers.auth !== config.clientToken)
return res.status(401).send('not-authorized')
db.table('gallery').select('id', 'name').then((data) => {
@@ -17,7 +17,7 @@ galleryController.list = function(req, res, next){
galleryController.test = function(req, res, next){
if(config.TOKEN === true)
- if(req.headers.auth === config.clientToken)
+ if(req.headers.auth !== config.clientToken)
return res.status(401).send('not-authorized')
let testdata = [