mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-07 05:12:19 +02:00
fixed defect where no flash (error/success) messages would be displayed due to wrongly placed flash() call (it should go after passport.initialize and passport.session)
This commit is contained in:
@@ -56,9 +56,6 @@ module.exports = function(app, passport, db) {
|
||||
})
|
||||
}));
|
||||
|
||||
// Connect flash for flash messages
|
||||
app.use(flash());
|
||||
|
||||
// Dynamic helpers
|
||||
app.use(helpers(config.app.name));
|
||||
|
||||
@@ -66,6 +63,9 @@ module.exports = function(app, passport, db) {
|
||||
app.use(passport.initialize());
|
||||
app.use(passport.session());
|
||||
|
||||
// Connect flash for flash messages
|
||||
app.use(flash());
|
||||
|
||||
// Routes should be at the last
|
||||
app.use(app.router);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user