diff --git a/src/routes/authentication.js b/src/routes/authentication.js index efba27052d..f29a95884a 100644 --- a/src/routes/authentication.js +++ b/src/routes/authentication.js @@ -58,7 +58,12 @@ Auth.reloadRoutes = function (router, callback) { async.waterfall([ function (next) { - plugins.fireHook('filter:auth.init', loginStrategies, next); + plugins.fireHook('filter:auth.init', loginStrategies, function (err) { + if (err) { + winston.error('[authentication] ' + err.stack); + } + next(null, loginStrategies); + }); }, function (loginStrategies, next) { loginStrategies = loginStrategies || [];