Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
fixed defect where no flash (error/success) messages would be display…
Browse files Browse the repository at this point in the history
…ed due to wrongly placed flash() call (it should go after passport.initialize and passport.session)
  • Loading branch information
lirantal committed Jan 17, 2014
1 parent 6bacb0c commit 55aeaad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ module.exports = function(app, passport, db) {
})
}));

// Connect flash for flash messages
app.use(flash());

// Dynamic helpers
app.use(helpers(config.app.name));

// Use passport session
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);

Expand Down

0 comments on commit 55aeaad

Please sign in to comment.