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:
Julian Lam
2014-09-21 14:29:27 -04:00
parent 5f2a66295c
commit 7597c654a0
6 changed files with 26 additions and 34 deletions

View File

@@ -129,7 +129,7 @@ module.exports = function(app, data) {
app.use(middleware.processRender);
auth.initialize(app);
auth.initialize(app, middleware);
routeCurrentTheme(app, data.currentThemeId, data.themesData);
routeThemeScreenshots(app, data.themesData);