fix: do not prevent nbb from starting

if a plugin returns error for filter:auth.init
v1.18.x
Barış Soner Uşaklı 6 years ago
parent 91f0bce628
commit 3b0459a0a5

@ -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 || [];

Loading…
Cancel
Save