Update util.js
fixes 118, thanks @smilesm2
This commit is contained in:
parent
e512fca4d0
commit
e452dc0fb1
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ var Auth = require('basic-auth')
|
||||||
|
|
||||||
exports.basicAuth = function basicAuth (req, res, next) {
|
exports.basicAuth = function basicAuth (req, res, next) {
|
||||||
var myAuth = Auth(req)
|
var myAuth = Auth(req)
|
||||||
if (myAuth) {
|
if (myAuth && myAuth.pass !== '') {
|
||||||
req.session.username = myAuth.name
|
req.session.username = myAuth.name
|
||||||
req.session.userpassword = myAuth.pass
|
req.session.userpassword = myAuth.pass
|
||||||
debug('myAuth.name: ' + myAuth.name.yellow.bold.underline +
|
debug('myAuth.name: ' + myAuth.name.yellow.bold.underline +
|
||||||
|
|
Loading…
Reference in a new issue