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

@@ -62,8 +62,6 @@ if(nconf.get('ssl')) {
}, function(err, data) {
middleware = middleware(app, data);
routes(app, middleware);
plugins.prepareApp(app, middleware);
auth.registerApp(app, middleware);
if (err) {
winston.error('Errors were encountered while attempting to initialise NodeBB.');