From e452dc0fb1b5421b49eaf270445a1acd9a14407c Mon Sep 17 00:00:00 2001 From: Bill Church Date: Wed, 21 Nov 2018 11:53:00 -0500 Subject: [PATCH] Update util.js fixes 118, thanks @smilesm2 --- app/server/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/server/util.js b/app/server/util.js index 13a258d..a3ea940 100644 --- a/app/server/util.js +++ b/app/server/util.js @@ -9,7 +9,7 @@ var Auth = require('basic-auth') exports.basicAuth = function basicAuth (req, res, next) { var myAuth = Auth(req) - if (myAuth) { + if (myAuth && myAuth.pass !== '') { req.session.username = myAuth.name req.session.userpassword = myAuth.pass debug('myAuth.name: ' + myAuth.name.yellow.bold.underline +