Skip to content

Instantly share code, notes, and snippets.

@chovy chovy/gist:3786219
Created Sep 26, 2012

What would you like to do?
app.use(function(req, res, next){
if ( req.session.user ) {
req.session.logged_in = true;
res.locals.message = req.flash();
res.locals.session = req.session;
res.locals.q = req.body;
res.locals.err = false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.