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 +