fix: loop

This commit is contained in:
Barış Soner Uşaklı
2018-12-17 16:59:45 -05:00
parent ae0fe5e880
commit 60390c01f1

View File

@@ -43,7 +43,7 @@ module.exports = function (middleware) {
callback(); callback();
} }
middleware.authenticate = function authenticate(req, res, next) { middleware.authenticate = function middlewareAuthenticate(req, res, next) {
authenticate(req, res, next, function () { authenticate(req, res, next, function () {
controllers.helpers.notAllowed(req, res, next); controllers.helpers.notAllowed(req, res, next);
}); });