updated termsOfUse to use registration interstitial instead of being integrated into register template

This commit is contained in:
Julian Lam
2016-06-22 16:47:24 -04:00
parent 041670bfe9
commit a14263349b
7 changed files with 62 additions and 12 deletions

View File

@@ -201,9 +201,11 @@ Controllers.registerInterstitial = function(req, res, next) {
var renders = data.interstitials.map(function(interstitial) {
return async.apply(req.app.render.bind(req.app), interstitial.template, interstitial.data)
});
var errors = req.flash('error');
async.parallel(renders, function(err, sections) {
res.render('registerComplete', {
errors: errors,
sections: sections
});
});