Permalink
Browse files

[fix] drop bolt.io support to event emitter

  • Loading branch information...
1 parent aab8543 commit 49567765bce212b22c0e48557074b87f1a91a3c1 @alejandro alejandro committed Jun 15, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/middle.js
View
@@ -1,7 +1,8 @@
var lib = require('./lib')
, cradle = require('cradle')
, config = require('../config')
- , dash = process.dash || new require('events').EventEmitter
+ , EventEmitter = require('events').EventEmitter
+ , dash = process.dash || new EventEmitter()
, log = process.log || (new require('bunyan'))({name: "nodester"})
;
@@ -38,13 +39,13 @@ var authenticate = function(req, res, next) {
status : "failure",
message: "Invalid username or password."
}, 401)
- return;
+ return;
}
}
});
} else {
res.json({"status" : "No authentication data sent."},401);
- return;
+ return;
}
};
var authenticate_admin = function(req, res, next) {

0 comments on commit 4956776

Please sign in to comment.