Update util.js

fixes 118, thanks @smilesm2
This commit is contained in:
Bill Church 2018-11-21 11:53:00 -05:00
parent e512fca4d0
commit e452dc0fb1

View file

@ -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 +