add beta site warning

This commit is contained in:
Berkeley Martinez
2015-08-01 16:10:50 -07:00
parent e8380cac28
commit 32ce40b815

View File

@ -186,6 +186,12 @@ passportConfigurator.init();
app.use(rxMiddleware());
app.use(function(req, res, next) {
// add beta warning
req.flash('info', {
msg: `warning: you are on expiramentel branch of Free Code Camp:
You're progress here may or may not be saved to the main site`
});
// Make user object available in templates.
res.locals.user = req.user;
next();