mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 05:55:48 +01:00
refactored plugin and auth init a bit, and fixed issue where successive reloads caused old login strategies to be inadvertently preserved
This commit is contained in:
@@ -207,7 +207,7 @@ module.exports = function(app, middleware) {
|
||||
app.use(handleErrors);
|
||||
|
||||
// Add plugin routes
|
||||
plugins.reloadRoutes();
|
||||
plugins.init(app, middleware);
|
||||
authRoutes.reloadRoutes();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user